Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 63ecfd5

Browse filesBrowse 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 1fa1b30 commit 63ecfd5
Copy full SHA for 63ecfd5

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

‎src/rum_debug_funcs.c

Copy file name to clipboardExpand all lines: src/rum_debug_funcs.c
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ rum_page_opaque_info(PG_FUNCTION_ARGS)
318318
values[3] = Int32GetDatum(opaq->freespace);
319319

320320
#if PG_VERSION_NUM >= 160000
321-
values[4] = ItemPointerGetDatum(construct_array_builtin(flags, nflags, TEXTOID));
321+
values[4] = PointerGetDatum(construct_array_builtin(flags, nflags, TEXTOID));
322322
#else
323323
values[4] = PointerGetDatum(construct_array(flags, nflags,
324324
TEXTOID, -1, false, TYPALIGN_INT));
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.