Skip to content

Commit 1557119

Browse files
author
Arseny Kositsyn
committed
[PGPRO-12159] Fixed test crashes on version 13 of PostgreSQL.
The crashes were due to the fact that the MONEYOID is not defined on versions below 14. Tags: rum
1 parent 267267f commit 1557119

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rum_debug_funcs.c

+2
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,7 @@ get_datum_text_by_oid(Datum info, Oid info_oid)
14781478
str_info = OidOutputFunctionCall(F_FLOAT8OUT, info);
14791479
break;
14801480

1481+
#if PG_VERSION_NUM >= 140000
14811482
/*
14821483
* TODO: The oid of the function for displaying this
14831484
* type as text could not be found.
@@ -1486,6 +1487,7 @@ get_datum_text_by_oid(Datum info, Oid info_oid)
14861487
/* str_addInfo = OidOutputFunctionCall(, addInfo); */
14871488
/* break; */
14881489
return CStringGetTextDatum("MONEYOID is not supported");
1490+
#endif
14891491

14901492
case OIDOID:
14911493
str_info = OidOutputFunctionCall(F_OIDOUT, info);

0 commit comments

Comments
 (0)