Update database.php

This commit is contained in:
Namhyeon Go 2019-07-14 16:36:08 +09:00 committed by GitHub
parent 0ea368e92e
commit e51e06a9b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,6 +431,14 @@ if(!check_function_exists("get_bind_to_sql_select")) {
if(check_array_length($opts[1][2], 0) > 0) {
$s3 .= sprintf(" %s (%s in ('%s'))", $opts[0], $opts[1][1], implode("', '", $opts[1][2]));
}
} elseif($opts[1][0] == "set") {
if(check_array_length($opts[1][2], 0) > 0) {
$s3a = array();
foreach($opts[1][2] as $word) {
$s3a[] = sprintf("find_in_set('%s', %s)", $word, $opts[1][1]);
}
$s3 .= sprintf(" %s (" . implode(" and ", $s3a) . ")", $opts[0]);
}
} else {
$ssts = array(
"eq" => "=",