Update database.php

This commit is contained in:
Namhyeon Go 2020-02-21 18:10:45 +09:00 committed by GitHub
parent a604fa9a8c
commit 8a2a3def51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -497,6 +497,14 @@ if(!is_fn("get_bind_to_sql_where")) {
}
$s3 .= sprintf(" %s (%s)", $opts[0], implode(" and ", $s3a));
}
} elseif($opts[1][0] == "inset") {
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 (%s)", $opts[0], implode(" or ", $s3a));
}
} elseif($opts[1][0] == "interval") {
$s3u = array("s" => 1, "m" => 60, "h" => 120, "d" => 86400);
// todo