From c64557aaf51e64ef55b65a49e9f0c5a8786fcaa8 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 1 Nov 2010 16:10:17 +0100 Subject: [PATCH] Support 'character varying' --- adminer/include/adminer.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index c53cb2b5..f53d65da 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -166,7 +166,7 @@ document.getElementById('username').focus(); * @return string */ function selectVal($val, $link, $field) { - $return = ($val != "NULL" && ereg("^char|binary", $field["type"]) ? "$val" : $val); + $return = ($val != "NULL" && ereg("char|binary", $field["type"]) && !ereg("var", $field["type"]) ? "$val" : $val); if (ereg('blob|bytea|raw|file', $field["type"]) && !is_utf8($val)) { $return = lang('%d byte(s)', strlen(html_entity_decode($val, ENT_QUOTES))); }