From 66d537c1501b5f8d4436fe907792794ed90354c7 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 9 Sep 2012 10:19:07 -0700 Subject: [PATCH] Apply text length on geometry data --- adminer/select.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 18bda99e9..e8b28c102 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -18,7 +18,7 @@ $name = $adminer->fieldName($field); if (isset($field["privileges"]["select"]) && $name != "") { $columns[$key] = html_entity_decode(strip_tags($name)); - if (ereg('text|lob', $field["type"])) { + if (ereg('text|lob|geometry|point|linestring|polygon', $field["type"])) { $text_length = $adminer->selectLengthProcess(); } } @@ -349,7 +349,7 @@ if ($val === "") { // === - may be int $val = " "; } elseif (is_utf8($val)) { - if ($text_length != "" && ereg('text|blob', $field["type"])) { + if ($text_length != "" && ereg('text|lob|geometry|point|linestring|polygon', $field["type"])) { $val = shorten_utf8($val, max(0, +$text_length)); // usage of LEFT() would reduce traffic but complicate query - expected average speedup: .001 s VS .01 s on local network } else { $val = h($val);