Update database.php

This commit is contained in:
Namhyeon Go 2018-07-03 10:48:10 +09:00 committed by GitHub
parent 6a9584871e
commit 6d294c9d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -317,6 +317,8 @@ if(!function_exists("get_bind_to_sql_select")) {
foreach($options['setwheres'] as $opts) {
if(check_is_string_not_array($opts)) {
$s3 .= sprintf(" and (%s)", $opts);
} elseif(count($opts) == 3 && is_array($opts[2])) {
$s3 .= sprintf(" %s (%s)", $opts[0], get_db_binded_sql($opts[1], $opts[2]));
} elseif(count($opts) == 2) {
$s3 .= sprintf(" %s (%s)", $opts[0], $opts[1]);
}