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