Update database.php

This commit is contained in:
Namhyeon Go 2020-01-09 22:03:41 +09:00 committed by GitHub
parent f33bf7da19
commit ce7cc612ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,6 +301,7 @@ if(!check_function_exists("get_bind_to_sql_insert")) {
$num_duplicates = 0; $num_duplicates = 0;
// do process // do process
if(count($setduplicate) > 0) {
$_bind_K = array(); $_bind_K = array();
$_bind_V = array(); $_bind_V = array();
foreach($bind as $k=>$v) { foreach($bind as $k=>$v) {
@ -314,11 +315,12 @@ if(!check_function_exists("get_bind_to_sql_insert")) {
"getcount" => true, "getcount" => true,
"setwheres" => $setnotwhere "setwheres" => $setnotwhere
)); ));
write_common_log($_sql, "AAAAAAAA"); write_common_log($_sql, "BBBBBB");
$_rows = exec_db_fetch_all($_sql, $_bind_K); $_rows = exec_db_fetch_all($_sql, $_bind_K);
foreach($_rows as $_row) { foreach($_rows as $_row) {
$num_duplicates += intval($_row['value']); $num_duplicates += intval($_row['value']);
} }
}
// make statements // make statements
if($num_duplicates > 0) { if($num_duplicates > 0) {