mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 17:44:07 +02:00
Support 'character varying'
This commit is contained in:
@@ -166,7 +166,7 @@ document.getElementById('username').focus();
|
||||
* @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)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user