]> git.joonet.de Git - adminer.git/commitdiff
Display boolean values as code (bug #562)
authorJakub Vrana <jakub@vrana.cz>
Wed, 24 Jan 2018 09:53:25 +0000 (10:53 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 24 Jan 2018 09:53:25 +0000 (10:53 +0100)
adminer/include/adminer.inc.php
changes.txt

index 89ad937ac2eac564fa3c39adfc3f1eb85905143b..1ca68fcc813933ce3b430379569927a1f689b397 100644 (file)
@@ -255,7 +255,7 @@ class Adminer {
        * @return string
        */
        function selectVal($val, $link, $field, $original) {
-               $return = ($val === null ? "<i>NULL</i>" : (preg_match("~char|binary~", $field["type"]) && !preg_match("~var~", $field["type"]) ? "<code>$val</code>" : $val));
+               $return = ($val === null ? "<i>NULL</i>" : (preg_match("~char|binary|boolean~", $field["type"]) && !preg_match("~var~", $field["type"]) ? "<code>$val</code>" : $val));
                if (preg_match('~blob|bytea|raw|file~', $field["type"]) && !is_utf8($val)) {
                        $return = "<i>" . lang('%d byte(s)', strlen($original)) . "</i>";
                }
index 8093f5a87392c871986602de5d11148de66813c1..9d81855286ab7759b0de3a512a730d649741542d 100644 (file)
@@ -11,6 +11,7 @@ PostgreSQL: Respect NULL default value
 PostgreSQL: Display foreign tables (bug #576)
 PostgreSQL: Do not export triggers if not requested
 PostgreSQL: Export DROP SEQUENCE if dropping table
+PostgreSQL: Display boolean values as code (bug #562)
 MS SQL: Support freetds
 Elasticsearch: Insert, update, delete
 MongoDB: Support mongodb PHP extension