From 733fe9e43064432bfac25c56e03d80916e07996d Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 6 May 2018 11:41:34 +0200 Subject: [PATCH] PostgreSQL: Do not cast uuid searches to text (bug #608) --- adminer/drivers/pgsql.inc.php | 2 +- changes.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/drivers/pgsql.inc.php b/adminer/drivers/pgsql.inc.php index 7d3f7222..88854cc4 100644 --- a/adminer/drivers/pgsql.inc.php +++ b/adminer/drivers/pgsql.inc.php @@ -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)" diff --git a/changes.txt b/changes.txt index ed129e7b..a292640e 100644 --- a/changes.txt +++ b/changes.txt @@ -8,7 +8,7 @@ PDO: Support binary fields download MySQL: Use CONVERT() only when searching for non-ASCII (bug #603) PostgreSQL: Add SQL operator to search PostgreSQL: Fix editing data in views (bug #605, regression from 4.6.0) -PostgreSQL: Do not cast date/time/number searches to text +PostgreSQL: Do not cast date/time/number/uuid searches to text (bug #608) Editor: Do not check boolean checkboxes with false in PostgreSQL (bug #607) Adminer 4.6.2 (released 2018-02-20):