Fix displaying length of blob columns

This commit is contained in:
Jakub Vrana 2013-01-23 02:18:02 -08:00
parent 0448bd118c
commit 15e83e9396
3 changed files with 5 additions and 3 deletions

View file

@ -202,7 +202,7 @@ username.form['auth[driver]'].onchange();
function selectVal($val, $link, $field) {
$return = ($val === null ? "<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($val));
$return = lang('%d byte(s)', strlen(html_entity_decode($val, ENT_QUOTES)));
}
return ($link ? "<a href='" . h($link) . "'>$return</a>" : $return);
}

View file

@ -1,2 +1,2 @@
<?php
$VERSION = "3.6.3";
$VERSION = "3.6.4-dev";

View file

@ -1,4 +1,6 @@
Adminer 3.6.3 (released 2012-01-23):
Adminer 3.6.4-dev:
Adminer 3.6.3 (released 2013-01-23):
Display error code in SQL query
Allow specifying external links
Treat Meta key same as Ctrl