1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

PostgreSQL: Do not cast uuid searches to text (bug #608)

This commit is contained in:
Jakub Vrana
2018-05-06 11:41:34 +02:00
parent 5c3fb875e1
commit 733fe9e430
2 changed files with 2 additions and 2 deletions

View File

@@ -216,7 +216,7 @@ if (isset($_GET["pgsql"])) {
function convertSearch($idf, $val, $field) {
return (preg_match('~char|text'
. (!preg_match('~LIKE~', $val["op"]) ? '|date|time(stamp)?|boolean|' . number_type() : '')
. (!preg_match('~LIKE~', $val["op"]) ? '|date|time(stamp)?|boolean|uuid|' . number_type() : '')
. '~', $field["type"])
? $idf
: "CAST($idf AS text)"