Update database.php
This commit is contained in:
parent
332d073b11
commit
099f65e210
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user