]> git.joonet.de Git - adminer.git/commitdiff
Support 'character varying'
authorJakub Vrana <jakub@vrana.cz>
Mon, 1 Nov 2010 15:10:17 +0000 (16:10 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 1 Nov 2010 15:10:17 +0000 (16:10 +0100)
adminer/include/adminer.inc.php

index c53cb2b58f4845aa2bba8933c05e56d79557f7f9..f53d65dae68bec1aa80b5dae162f67007d9ece87 100644 (file)
@@ -166,7 +166,7 @@ document.getElementById('username').focus();
        * @return string
        */
        function selectVal($val, $link, $field) {
-               $return = ($val != "<i>NULL</i>" && ereg("^char|binary", $field["type"]) ? "<code>$val</code>" : $val);
+               $return = ($val != "<i>NULL</i>" && ereg("char|binary", $field["type"]) && !ereg("var", $field["type"]) ? "<code>$val</code>" : $val);
                if (ereg('blob|bytea|raw|file', $field["type"]) && !is_utf8($val)) {
                        $return = lang('%d byte(s)', strlen(html_entity_decode($val, ENT_QUOTES)));
                }