From b9603c32523217d4549ed494fee5e84e84b2f5ae Mon Sep 17 00:00:00 2001 From: bgermann Date: Sat, 2 Nov 2019 19:24:58 +0100 Subject: [PATCH] Compile with PostgreSQL 12 [GB.DB.POSTGRESQL] * Compile with PostgreSQL 12 --- gb.db.postgresql/src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gb.db.postgresql/src/main.c b/gb.db.postgresql/src/main.c index ce0cbcad7..5401768d4 100644 --- a/gb.db.postgresql/src/main.c +++ b/gb.db.postgresql/src/main.c @@ -335,8 +335,10 @@ static GB_TYPE conv_type(Oid type) case FLOAT8OID: return GB_T_FLOAT; +#ifdef ABSTIMEOID case ABSTIMEOID: case RELTIMEOID: +#endif case DATEOID: case TIMEOID: case TIMESTAMPOID: @@ -418,8 +420,10 @@ static void conv_data(const char *data, int len, GB_VARIANT_VALUE *val, Oid type break; + #ifdef ABSTIMEOID case ABSTIMEOID: case RELTIMEOID: + #endif case DATEOID: case TIMEOID: case TIMESTAMPOID: @@ -439,8 +443,10 @@ static void conv_data(const char *data, int len, GB_VARIANT_VALUE *val, Oid type switch(type) { + #ifdef ABSTIMEOID case ABSTIMEOID: case RELTIMEOID: + #endif case DATEOID: sscanf(data, "%4d-%2d-%2d", &date.year, &date.month, &date.day);