@@ -92,7 +92,7 @@ typedef JsonContainer JsonbContainer;
92
92
PointerGetDatum(JsonFlatten(json, JsonbEncode, &jsonbContainerOps))
93
93
94
94
#define JsonValueToJsonbDatum (jv ) \
95
- PointerGetDatum(JsonValueFlatten(jv, JsonbEncode, &jsonbContainerOps))
95
+ PointerGetDatum(JsonValueFlatten(jv, JsonbEncode, &jsonbContainerOps, NULL ))
96
96
97
97
#define JsonbPGetDatum (json ) JsonFlattenToJsonbDatum(json)
98
98
@@ -294,7 +294,7 @@ extern void *JsonContainerFlatten(JsonContainer *jc, JsonValueEncoder encoder,
294
294
JsonContainerOps * ops , const JsonValue * binary );
295
295
296
296
extern void * JsonValueFlatten (const JsonValue * val , JsonValueEncoder encoder ,
297
- JsonContainerOps * ops );
297
+ JsonContainerOps * ops , void * cxt );
298
298
extern void * JsonEncode (const JsonbValue * val , JsonValueEncoder encoder , void * cxt );
299
299
300
300
static inline void *
@@ -306,7 +306,7 @@ JsonFlatten(Json *json, JsonValueEncoder encoder, JsonContainerOps *ops)
306
306
extern void JsonbEncode (StringInfo , const JsonValue * , void * cxt );
307
307
308
308
#define JsonValueToJsonb (val ) \
309
- JsonValueFlatten(val, JsonbEncode, &jsonbContainerOps)
309
+ JsonValueFlatten(val, JsonbEncode, &jsonbContainerOps, NULL )
310
310
311
311
extern int lengthCompareJsonbStringValue (const void * a , const void * b );
312
312
extern int lengthCompareJsonbString (const char * val1 , int len1 ,
0 commit comments