Skip to content

Commit 7f35dab

Browse files
author
Nikita Glukhov
committed
Fix PG_RETURN_JSONB() definition
1 parent 913954e commit 7f35dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/utils/jsonb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ typedef enum
7373
#define JsonbPGetDatum(p) PointerGetDatum(p)
7474
#define PG_GETARG_JSONB_P(x) DatumGetJsonbP(PG_GETARG_DATUM(x))
7575
#define PG_GETARG_JSONB_P_COPY(x) DatumGetJsonbPCopy(PG_GETARG_DATUM(x))
76-
#define PG_RETURN_JSONB_P(x) PG_RETURN_POINTER(x)
76+
#define PG_RETURN_JSONB_P(x) PG_RETURN_DATUM(JsonbPGetDatum(x))
7777

7878
typedef struct JsonbPair JsonbPair;
7979
typedef struct JsonbValue JsonbValue;

0 commit comments

Comments
 (0)