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)));
}