We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e844b3 commit 4152c5bCopy full SHA for 4152c5b
src/include/utils/jsonb.h
@@ -68,7 +68,7 @@ typedef enum
68
#define DatumGetJsonb(d) ((Jsonb *) PG_DETOAST_DATUM(d))
69
#define JsonbGetDatum(p) PointerGetDatum(p)
70
#define PG_GETARG_JSONB(x) DatumGetJsonb(PG_GETARG_DATUM(x))
71
-#define PG_RETURN_JSONB(x) PG_RETURN_POINTER(x)
+#define PG_RETURN_JSONB(x) PG_RETURN_DATUM(JsonbGetDatum(x))
72
73
typedef struct JsonbPair JsonbPair;
74
typedef struct JsonbValue JsonbValue;
0 commit comments