Update database.php

This commit is contained in:
Namhyeon Go 2018-06-28 17:22:05 +09:00 committed by GitHub
parent d94c179bc6
commit ef6740f412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")) {
// 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()) {