]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Do not cast boolean to text on search (#264)
authorMatěj Humpál <finwe@users.noreply.github.com>
Sun, 18 Mar 2018 13:34:54 +0000 (14:34 +0100)
committerJakub Vrána <jakub@vrana.cz>
Sun, 18 Mar 2018 13:34:54 +0000 (14:34 +0100)
adminer/drivers/pgsql.inc.php

index 6953ebf63fa243436040b0e0ecaa2d6c34375b16..7d3f72223d15a6c253a39f8a9d94935a5a01a6ea 100644 (file)
@@ -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)"