Update database.php

This commit is contained in:
Namhyeon Go 2020-01-09 17:27:50 +09:00 committed by GitHub
parent 5cf9234791
commit c446db7ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,7 +344,7 @@ if(!check_function_exists("get_bind_to_sql_insert")) {
// make statements // make statements
if($num_duplicates > 0) { if($num_duplicates > 0) {
$sql = get_bind_to_sql_update($tablename, $bind, array( $sql = get_bind_to_sql_update($tablename, $bind, array(
"setkeys" => array_keys($_bind_F) "setkeys" => array_keys($_bind_T)
), $options); ), $options);
} else { } else {
$bind_keys = array_keys($bind); $bind_keys = array_keys($bind);
@ -699,7 +699,7 @@ if(!check_function_exists("get_bind_to_sql_update")) {
$s3 = get_bind_to_sql_where($_bind_T, $options); $s3 = get_bind_to_sql_where($_bind_T, $options);
// make completed statements // make completed statements
$sql = get_db_binded_sql(sprintf("update %s set %s where %s", $s1, $s2, $s3), $bind); $sql = get_db_binded_sql(sprintf($sql, $s1, $s2, $s3), $bind);
return $sql; return $sql;
} }