From: Jakub Vrana Date: Mon, 1 Nov 2010 15:10:17 +0000 (+0100) Subject: Support 'character varying' X-Git-Tag: v3.1.0~20 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=c64557aaf51e64ef55b65a49e9f0c5a8786fcaa8;p=adminer.git Support 'character varying' --- 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))); }