summaryrefslogtreecommitdiffstats
path: root/src/sql
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:00 +0100
commit9a6ac9dde59581df39cdc6734e99e1db97b03887 (patch)
tree884359f4949836bbe6d64e23a70e35c2962a2aa3 /src/sql
parent90ea30a42a102ac57b26439965ec1240341c568d (diff)
downloadtqt3-9a6ac9dde59581df39cdc6734e99e1db97b03887.tar.gz
tqt3-9a6ac9dde59581df39cdc6734e99e1db97b03887.zip
Fix build with PostgreSQL 12+.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/sql')
-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 b6466e891..7a12fe8c6 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;