From e514327dcc1eb66cb1ff37d802d513ed0c531e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 18 Nov 2019 16:37:53 +0100 Subject: Fix build with PostgreSQL 12+. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 271050fb4c1ddbd6b9ee91c1ffff8bbb639a9d0a) --- src/sql/drivers/psql/qsql_psql.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3