Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support 'character varying'

  • Loading branch information...
commit c64557aaf51e64ef55b65a49e9f0c5a8786fcaa8 1 parent dca7c51
@vrana authored
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)));
}
Please sign in to comment.
Something went wrong with that request. Please try again.