summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-11-18 16:37:53 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-11-18 16:37:53 +0100
commit271050fb4c1ddbd6b9ee91c1ffff8bbb639a9d0a (patch)
tree5a62d96d0b1675eadda59dd72f37b5efaa768f9c
parentaa53689da2a380e2197f40460034759e9ab781aa (diff)
downloadqt3-271050fb4c1ddbd6b9ee91c1ffff8bbb639a9d0a.tar.gz
qt3-271050fb4c1ddbd6b9ee91c1ffff8bbb639a9d0a.zip
Fix build with PostgreSQL 12+.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-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 c5e93c0..6de2365 100644
--- a/src/sql/drivers/psql/qsql_psql.cpp
+++ b/src/sql/drivers/psql/qsql_psql.cpp
@@ -147,8 +147,10 @@ static QVariant::Type qDecodePSQLType( int t )
case FLOAT8OID :
type = QVariant::Double;
break;
+#ifdef ABSTIMEOID // PostgreSQL << 12.x
case ABSTIMEOID :
case RELTIMEOID :
+#endif
case DATEOID :
type = QVariant::Date;
break;