Update database.php

This commit is contained in:
Namhyeon Go 2019-11-10 19:27:02 +09:00 committed by GitHub
parent ef90fa3045
commit f407444918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,7 +327,7 @@ if(!check_function_exists("get_bind_to_sql_insert")) {
$sql = "insert into %s (%s) values (:%s)";
$s1 = $tablename;
$s2 = implode(", ", $bind_keys);
$s2 = sprintf("`%s`", implode("`, `", $bind_keys));
$s3 = implode(", :", $bind_keys);
$sql = sprintf($sql, $s1, $s2, $s3);