Update database.php
This commit is contained in:
parent
d94c179bc6
commit
ef6740f412
|
@ -274,23 +274,6 @@ if(!function_exists("get_bind_to_sql_update_set")) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!function_exists("get_bind_to_sql_update_set")) {
|
|
||||||
// warning: variable k is not protected. do not use variable k and external variable without filter
|
|
||||||
function get_bind_to_sql_update_set($bind, $excludes=array()) {
|
|
||||||
$sql_update_set = "";
|
|
||||||
$set_items = "";
|
|
||||||
|
|
||||||
foreach($bind as $k=>$v) {
|
|
||||||
if(!in_array($k, $excludes)) {
|
|
||||||
$set_items[] = sprintf("%s = :%s", $k, $k);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$sql_update_set = implode(", ", $set_items);
|
|
||||||
|
|
||||||
return $sql_update_set;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!function_exists("get_bind_to_sql_select")) {
|
if(!function_exists("get_bind_to_sql_select")) {
|
||||||
// warning: variable k is not protected. do not use variable k and external variable without filter
|
// warning: variable k is not protected. do not use variable k and external variable without filter
|
||||||
function get_bind_to_sql_select($tablename, $bind=array(), $options=array()) {
|
function get_bind_to_sql_select($tablename, $bind=array(), $options=array()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user