Update database.php

This commit is contained in:
Namhyeon Go 2020-02-17 21:17:58 +09:00 committed by GitHub
parent b5033238f6
commit 6f9d9185b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,7 +363,7 @@ if(!is_fn("exec_db_bulk_start")) {
function exec_db_bulk_start() {
$bulkid = make_random_id();
set_shared_var("bulk_" . $bulkid, array());
//write_common_log("bulk started: " . $bulkid);
//write_common_log("bulk started: " . $bulkid, "system/database");
return $bulkid;
}
}
@ -373,7 +373,7 @@ if(!is_fn("exec_db_bulk_push")) {
$rows = get_shared_var("bulk_" . $bulkid);
$rows[] = $bind;
set_shared_var("bulk_" . $bulkid, $rows);
//write_common_log("bulk pushed: " . $bulkid . " / " . count($rows));
//write_common_log("bulk pushed: " . $bulkid . " / " . count($rows), "system/database");
}
}
@ -393,7 +393,7 @@ if(!is_fn("exec_db_bulk_end")) {
$sql = sprintf($sql, $s1, $s2, $s3);
//write_common_log("bulk ended: " . $sql);
write_common_log("bulk ended: " . substr($sql, 0, 200) . "...", "system/database");
return exec_db_query($sql);
}