diff options
author | Slávek Banko <[email protected]> | 2019-11-18 16:37:53 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-11-18 16:38:02 +0100 |
commit | e514327dcc1eb66cb1ff37d802d513ed0c531e0b (patch) | |
tree | 6d1715b2af43908067c87162710e9c9e4ead13ba | |
parent | 2f9841a32b3a5ac2a7d60ac791b6a08b51e799e2 (diff) | |
download | qt3-e514327dcc1eb66cb1ff37d802d513ed0c531e0b.tar.gz qt3-e514327dcc1eb66cb1ff37d802d513ed0c531e0b.zip |
Fix build with PostgreSQL 12+.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 271050fb4c1ddbd6b9ee91c1ffff8bbb639a9d0a)
-rw-r--r-- | src/sql/drivers/psql/qsql_psql.cpp | 2 |
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 9d028c0..c31ed7f 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; |