Skip to content

Commit 789a2c2

Browse files
author
Nikita Glukhov
committed
Fix PG_RETURN_JSONB() definition
1 parent 463aaad commit 789a2c2

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy