1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 20:01:25 +02:00

Non-MySQL binary types

This commit is contained in:
Jakub Vrana
2010-05-26 18:07:02 +02:00
parent 9e1d1c3570
commit 375a5c8ef3
3 changed files with 7 additions and 7 deletions

View File

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