Update database.php
This commit is contained in:
parent
04b9f61451
commit
26e88b4858
|
@ -429,7 +429,11 @@ if(!check_function_exists("get_bind_to_sql_select")) {
|
||||||
$s3 .= sprintf(" %s (%s)", $opts[0], get_db_binded_sql($opts[1], $opts[2]));
|
$s3 .= sprintf(" %s (%s)", $opts[0], get_db_binded_sql($opts[1], $opts[2]));
|
||||||
} elseif(check_array_length($opts, 2) == 0 && is_array($opts[1])) {
|
} elseif(check_array_length($opts, 2) == 0 && is_array($opts[1])) {
|
||||||
if($opts[1][0] == "like") {
|
if($opts[1][0] == "like") {
|
||||||
$s3 .= sprintf(" %s (%s like %s)", $opts[0], $s1a[$opts[1][1]], "'%{$opts[1][2]}%'");
|
if(is_array($opts[1][2])) {
|
||||||
|
$s3 .= sprintf(" %s (%s regexp '%s')", $opts[0], $s1a[$opts[1][1]], implode("|", $opts[1][2]));
|
||||||
|
} else {
|
||||||
|
$s3 .= sprintf(" %s (%s like %s)", $opts[0], $s1a[$opts[1][1]], "'%{$opts[1][2]}%'");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$opcode = $opts[1][0];
|
$opcode = $opts[1][0];
|
||||||
switch($opts[1][0]) {
|
switch($opts[1][0]) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user