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

PostgreSQL: Don't treat interval type as number (bug #474)

This commit is contained in:
Jakub Vrana
2018-02-06 12:17:01 +01:00
parent 11a7fc0277
commit 6cfb3676a7
8 changed files with 20 additions and 10 deletions

View File

@@ -1071,7 +1071,7 @@ if (!defined("DRIVER")) {
"binary" => "md5/sha1",
"date|time" => "now",
), array(
"(^|[^o])int|float|double|decimal" => "+/-", // not point
number_type() => "+/-",
"date" => "+ interval/- interval",
"time" => "addtime/subtime",
"char|text" => "concat",

View File

@@ -789,7 +789,7 @@ AND typelem = 0"
"char" => "md5",
"date|time" => "now",
), array(
"int|numeric|real|money" => "+/-",
number_type() => "+/-",
"date|time" => "+ interval/- interval", //! escape
"char|text" => "||",
)