Skip to content

Commit

Permalink
PG16: Fix telemetry tests without OpenSSL
Browse files Browse the repository at this point in the history
Telemetry tests without OpenSSL was failing to build because PG16
converted the *GetDatum() and DatumGet*() macros to inline functions
that enable compiler to catch wrong usage of Datums.

postgres/postgres@c8b2ef0
  • Loading branch information
fabriziomello committed Nov 5, 2023
1 parent 18bcf16 commit 68e39a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/src/telemetry/test_telemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ ts_test_status_ssl(PG_FUNCTION_ARGS)

snprintf(buf, sizeof(buf) - 1, "{\"status\":%d}", status);

PG_RETURN_JSONB_P(DirectFunctionCall1(jsonb_in, CStringGetDatum(buf)));
;
PG_RETURN_JSONB_P(DatumGetJsonbP(DirectFunctionCall1(jsonb_in, CStringGetDatum(buf))));
#endif
}

Expand Down

0 comments on commit 68e39a3

Please sign in to comment.