Update database.php
This commit is contained in:
parent
77c75931b8
commit
0eea52779f
|
@ -285,6 +285,7 @@ if(!is_fn("get_bind_to_sql_insert")) {
|
||||||
|
|
||||||
// get not duplicatable fieldnames
|
// get not duplicatable fieldnames
|
||||||
$setkeys = get_array(get_value_in_array("setkeys", $options, false));
|
$setkeys = get_array(get_value_in_array("setkeys", $options, false));
|
||||||
|
$setfixeds = get_array(get_value_in_array("setfixeds", $options, false));
|
||||||
$setignores = get_array(get_value_in_array("setignores", $options, false));
|
$setignores = get_array(get_value_in_array("setignores", $options, false));
|
||||||
$setwheres = get_array(get_value_in_array("setwheres", $options, false));
|
$setwheres = get_array(get_value_in_array("setwheres", $options, false));
|
||||||
|
|
||||||
|
@ -302,10 +303,12 @@ if(!is_fn("get_bind_to_sql_insert")) {
|
||||||
$_bind_K = array();
|
$_bind_K = array();
|
||||||
$_bind_V = array();
|
$_bind_V = array();
|
||||||
foreach($bind as $k=>$v) {
|
foreach($bind as $k=>$v) {
|
||||||
if(in_array($k, $setkeys)) {
|
if(!in_array($k, $setfixeds)) {
|
||||||
$_bind_K[$k] = $v;
|
if(in_array($k, $setkeys)) {
|
||||||
} else {
|
$_bind_K[$k] = $v;
|
||||||
$_bind_V[$k] = $v;
|
} else {
|
||||||
|
$_bind_V[$k] = $v;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$_options = array(
|
$_options = array(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user