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:
|
case FLOAT8OID:
|
||||||
return GB_T_FLOAT;
|
return GB_T_FLOAT;
|
||||||
|
|
||||||
|
#ifdef ABSTIMEOID
|
||||||
case ABSTIMEOID:
|
case ABSTIMEOID:
|
||||||
case RELTIMEOID:
|
case RELTIMEOID:
|
||||||
|
#endif
|
||||||
case DATEOID:
|
case DATEOID:
|
||||||
case TIMEOID:
|
case TIMEOID:
|
||||||
case TIMESTAMPOID:
|
case TIMESTAMPOID:
|
||||||
@ -418,8 +420,10 @@ static void conv_data(const char *data, int len, GB_VARIANT_VALUE *val, Oid type
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef ABSTIMEOID
|
||||||
case ABSTIMEOID:
|
case ABSTIMEOID:
|
||||||
case RELTIMEOID:
|
case RELTIMEOID:
|
||||||
|
#endif
|
||||||
case DATEOID:
|
case DATEOID:
|
||||||
case TIMEOID:
|
case TIMEOID:
|
||||||
case TIMESTAMPOID:
|
case TIMESTAMPOID:
|
||||||
@ -439,8 +443,10 @@ static void conv_data(const char *data, int len, GB_VARIANT_VALUE *val, Oid type
|
|||||||
|
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
|
#ifdef ABSTIMEOID
|
||||||
case ABSTIMEOID:
|
case ABSTIMEOID:
|
||||||
case RELTIMEOID:
|
case RELTIMEOID:
|
||||||
|
#endif
|
||||||
case DATEOID:
|
case DATEOID:
|
||||||
|
|
||||||
sscanf(data, "%4d-%2d-%2d", &date.year, &date.month, &date.day);
|
sscanf(data, "%4d-%2d-%2d", &date.year, &date.month, &date.day);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user