Compile with PostgreSQL 12
[GB.DB.POSTGRESQL] * Compile with PostgreSQL 12
This commit is contained in:
parent
3f099c9b83
commit
b9603c3252
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user