From 065f528a1f986945cba5ae940fe0c2a4ebd168cd Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 9 Jan 2020 17:22:58 +0900 Subject: [PATCH] Update database.php --- system/database.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/database.php b/system/database.php index ee70890..bdd04f2 100644 --- a/system/database.php +++ b/system/database.php @@ -315,6 +315,7 @@ if(!check_function_exists("get_bind_to_sql_insert")) { // get not duplicatable fieldnames $setduplicate = get_array(get_value_in_array("setduplicate", $options, false)); + $setnotwhere = get_array(get_value_in_array("setnotwhere", $options, false)); // get number of duplicated rows $num_duplicates = 0; @@ -328,7 +329,8 @@ if(!check_function_exists("get_bind_to_sql_insert")) { } } $sql = get_bind_to_sql_select($tablename, $_bind_T, array( - "getcnt" => true + "getcnt" => true, + "setwheres" => $setnotwhere )); $rows = exec_db_fetch_all($sql, $du_bind); foreach($rows as $row) {