Update database.php
This commit is contained in:
parent
82e0f704aa
commit
be8ecf2d5e
|
|
@ -449,9 +449,18 @@ if(!check_function_exists("get_bind_to_sql_select")) {
|
||||||
$s3 .= sprintf(" %s (%s in ('%s'))", $opts[0], $s1a[$opts[1][1]], implode("', '", $opts[1][2]));
|
$s3 .= sprintf(" %s (%s in ('%s'))", $opts[0], $s1a[$opts[1][1]], implode("', '", $opts[1][2]));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$ssts = array("eq" => "=", "lt" => "<", "lte" => "<=", "gt" => ">", "gte" => ">=");
|
$ssts = array(
|
||||||
$opcode = get_value_in_array($opts[1][0], $ssts, $ssts['eq']);
|
"eq" => "=",
|
||||||
$s3 .= sprintf(" %s (%s %s '%s')", $opts[0], $opts[1][1], $opcode, $opts[1][2]);
|
"lt" => "<",
|
||||||
|
"lte" => "<=",
|
||||||
|
"gt" => ">",
|
||||||
|
"gte" => ">=",
|
||||||
|
"not" => "<>"
|
||||||
|
);
|
||||||
|
$opcode = get_value_in_array($opts[1][0], $ssts, $opts[1][0]);
|
||||||
|
if(!empty($opcode)) {
|
||||||
|
$s3 .= sprintf(" %s (%s %s '%s')", $opts[0], $opts[1][1], $opcode, $opts[1][2]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} elseif(check_array_length($opts, 2) == 0) {
|
} elseif(check_array_length($opts, 2) == 0) {
|
||||||
$s3 .= sprintf(" %s (%s)", $opts[0], $opts[1]);
|
$s3 .= sprintf(" %s (%s)", $opts[0], $opts[1]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user