Update database.php

This commit is contained in:
Namhyeon Go 2019-10-02 20:40:50 +09:00 committed by GitHub
parent 332d073b11
commit 099f65e210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -551,6 +551,16 @@ if(!check_function_exists("get_bind_to_sql_update")) {
function get_bind_to_sql_update($tablename, $bind, $options=array(), $_options=array()) {
$excludes = array();
$bind_wheres = array();
// compatible version 1.5
if(array_key_equals("compatible", $_options, "1.5")) {
foreach($options as $k=>$v) {
if($v == true) {
$excludes[] = $k;
}
}
$options = $_options;
}
// setkeys
if(!array_key_empty("setkeys", $options)) {
@ -562,12 +572,6 @@ if(!check_function_exists("get_bind_to_sql_update")) {
}
}
}
// compatible version 1.5
if(array_key_equals("compatible", $_options, "1.5")) {
$filter = $options;
$options = $_options;
}
// make sql 'where' clause
$sql_where = get_db_binded_sql(get_bind_to_sql_where($bind_wheres, $options), $bind_wheres);