Browse files

Support 'character varying'

  • Loading branch information...
1 parent dca7c51 commit c64557aaf51e64ef55b65a49e9f0c5a8786fcaa8 @vrana committed Nov 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/include/adminer.inc.php
View
2 adminer/include/adminer.inc.php
@@ -166,7 +166,7 @@ function rowDescriptions($rows, $foreignKeys) {
* @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)));
}

0 comments on commit c64557a

Please sign in to comment.