PostgreSQL: Do not cast boolean to text on search (#264)
This commit is contained in:
parent
89c66ccabe
commit
78f4513d9d
|
@ -216,7 +216,7 @@ if (isset($_GET["pgsql"])) {
|
|||
|
||||
function convertSearch($idf, $val, $field) {
|
||||
return (preg_match('~char|text'
|
||||
. (!preg_match('~LIKE~', $val["op"]) ? '|date|time(stamp)?|' . number_type() : '')
|
||||
. (!preg_match('~LIKE~', $val["op"]) ? '|date|time(stamp)?|boolean|' . number_type() : '')
|
||||
. '~', $field["type"])
|
||||
? $idf
|
||||
: "CAST($idf AS text)"
|
||||
|
|
Loading…
Reference in a new issue