Skip to content

Commit 4152c5b

Browse files
author
Nikita Glukhov
committed
Fix PG_RETURN_JSONB() definition
1 parent 1e844b3 commit 4152c5b

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
@@ -68,7 +68,7 @@ typedef enum
6868
#define DatumGetJsonb(d) ((Jsonb *) PG_DETOAST_DATUM(d))
6969
#define JsonbGetDatum(p) PointerGetDatum(p)
7070
#define PG_GETARG_JSONB(x) DatumGetJsonb(PG_GETARG_DATUM(x))
71-
#define PG_RETURN_JSONB(x) PG_RETURN_POINTER(x)
71+
#define PG_RETURN_JSONB(x) PG_RETURN_DATUM(JsonbGetDatum(x))
7272

7373
typedef struct JsonbPair JsonbPair;
7474
typedef struct JsonbValue JsonbValue;

0 commit comments

Comments
 (0)