PostgreSQL: Do not cast time search
This commit is contained in:
parent
e21ddd9767
commit
4a24ee7672
|
@ -195,7 +195,7 @@ if (isset($_GET["pgsql"])) {
|
||||||
|
|
||||||
function convertSearch($idf, $val, $field) {
|
function convertSearch($idf, $val, $field) {
|
||||||
return (preg_match('~char|text'
|
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"])
|
. '~', $field["type"])
|
||||||
? $idf
|
? $idf
|
||||||
: "CAST($idf AS text)"
|
: "CAST($idf AS text)"
|
||||||
|
|
|
@ -3,6 +3,7 @@ Stop session before connecting
|
||||||
Fix displaying info about non-alphabetical objects (bug #599)
|
Fix displaying info about non-alphabetical objects (bug #599)
|
||||||
PDO: Support binary fields download
|
PDO: Support binary fields download
|
||||||
MySQL: Use CONVERT() only when searching for non-ASCII (bug #603)
|
MySQL: Use CONVERT() only when searching for non-ASCII (bug #603)
|
||||||
|
PostgreSQL: Do not cast date/time searches to text
|
||||||
|
|
||||||
Adminer 4.6.2 (released 2018-02-20):
|
Adminer 4.6.2 (released 2018-02-20):
|
||||||
Semi-transparent border on table actions
|
Semi-transparent border on table actions
|
||||||
|
|
Loading…
Reference in a new issue