diff --git a/system/database.php b/system/database.php index c17bb23..a5ca54a 100644 --- a/system/database.php +++ b/system/database.php @@ -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()) {