From 54ca124d7a6494af0b901b9a2defad1fa94f9df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 18 Nov 2019 16:37:00 +0100 Subject: [PATCH] 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 9a6ac9dde59581df39cdc6734e99e1db97b03887) --- 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 8e2c02ad..a7a29cbc 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;