From f0d2af329a24b7d10644364df7b0482c3498e4f5 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 24 Jan 2018 10:53:25 +0100 Subject: [PATCH] Display boolean values as code (bug #562) --- adminer/include/adminer.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 89ad937a..1ca68fcc 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -255,7 +255,7 @@ class Adminer { * @return string */ function selectVal($val, $link, $field, $original) { - $return = ($val === null ? "NULL" : (preg_match("~char|binary~", $field["type"]) && !preg_match("~var~", $field["type"]) ? "$val" : $val)); + $return = ($val === null ? "NULL" : (preg_match("~char|binary|boolean~", $field["type"]) && !preg_match("~var~", $field["type"]) ? "$val" : $val)); if (preg_match('~blob|bytea|raw|file~', $field["type"]) && !is_utf8($val)) { $return = "" . lang('%d byte(s)', strlen($original)) . ""; } diff --git a/changes.txt b/changes.txt index 8093f5a8..9d818552 100644 --- a/changes.txt +++ b/changes.txt @@ -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