From: Jakub Vrana Date: Wed, 24 Jan 2018 09:53:25 +0000 (+0100) Subject: Display boolean values as code (bug #562) X-Git-Tag: v4.5.0~14 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f0d2af329a24b7d10644364df7b0482c3498e4f5;p=adminer.git Display boolean values as code (bug #562) --- 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