1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 11:34:10 +02:00

MySQL: Support geometry data types

This commit is contained in:
Jakub Vrana
2012-09-08 22:56:34 -07:00
parent 31a608e398
commit d5400234f0
11 changed files with 83 additions and 15 deletions

View File

@@ -205,7 +205,7 @@ username.form['auth[driver]'].onchange();
* @return string
*/
function editVal($val, $field) {
return (ereg("binary", $field["type"]) ? reset(unpack("H*", $val)) : $val);
return $val;
}
/** Print columns box in select
@@ -546,10 +546,7 @@ username.form['auth[driver]'].onchange();
} elseif (ereg('^(md5|sha1|password|encrypt)$', $function)) {
$return = "$function($return)";
}
if (ereg("binary", $field["type"])) {
$return = "unhex($return)";
}
return $return;
return unconvert_field($field, $return);
}
/** Returns export output options