1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Allow editing values with significant binary column (bug #3572781)

This commit is contained in:
Jakub Vrana
2012-12-11 21:25:56 -08:00
parent 8c91fd5966
commit 2703eb960a
5 changed files with 15 additions and 12 deletions

View File

@@ -968,7 +968,7 @@ if (!defined("DRIVER")) {
*/
function unconvert_field($field, $return) {
if (ereg("binary", $field["type"])) {
$return = "unhex($return)";
$return = "UNHEX($return)";
}
if (ereg("geometry|point|linestring|polygon", $field["type"])) {
$return = "GeomFromText($return)";