mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 09:34:10 +02:00
PostgreSQL: Do not cast time search
This commit is contained in:
@@ -195,7 +195,7 @@ if (isset($_GET["pgsql"])) {
|
||||
|
||||
function convertSearch($idf, $val, $field) {
|
||||
return (preg_match('~char|text'
|
||||
. (!preg_match('~LIKE~', $val["op"]) ? '|date|timestamp' . (is_numeric($val["val"]) ? '|' . number_type() : '') : '')
|
||||
. (!preg_match('~LIKE~', $val["op"]) ? '|date|time(stamp)?' . (is_numeric($val["val"]) ? '|' . number_type() : '') : '')
|
||||
. '~', $field["type"])
|
||||
? $idf
|
||||
: "CAST($idf AS text)"
|
||||
|
Reference in New Issue
Block a user