summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-11-18 16:37:00 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-11-18 16:37:17 +0100
commit54ca124d7a6494af0b901b9a2defad1fa94f9df9 (patch)
treef24631345d599b7b5104d7c9962a2129c9974bd1
parentb94e94689be75cc609dae907fb35edc01045653f (diff)
downloadtqt3-54ca124d7a6494af0b901b9a2defad1fa94f9df9.tar.gz
tqt3-54ca124d7a6494af0b901b9a2defad1fa94f9df9.zip
Fix build with PostgreSQL 12+.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 9a6ac9dde59581df39cdc6734e99e1db97b03887)
-rw-r--r--src/sql/drivers/psql/qsql_psql.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sql/drivers/psql/qsql_psql.cpp b/src/sql/drivers/psql/qsql_psql.cpp
index 8e2c02ad3..a7a29cbc6 100644
--- a/src/sql/drivers/psql/qsql_psql.cpp
+++ b/src/sql/drivers/psql/qsql_psql.cpp
@@ -147,8 +147,10 @@ static TQVariant::Type qDecodePSQLType( int t )
case FLOAT8OID :
type = TQVariant::Double;
break;
+#ifdef ABSTIMEOID // PostgreSQL << 12.x
case ABSTIMEOID :
case RELTIMEOID :
+#endif
case DATEOID :
type = TQVariant::Date;
break;