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 a670585 commit 0739c83Copy full SHA for 0739c83
zson.c
@@ -362,7 +362,7 @@ zson_out(PG_FUNCTION_ARGS)
362
Datum zson_datum = PointerGetDatum(zson_bytea);
363
Datum jsonb_datum = DirectFunctionCall1(zson_to_jsonb, zson_datum);
364
Datum string_datum = DirectFunctionCall1(jsonb_out, jsonb_datum);
365
- PG_RETURN_CSTRING(string_datum);
+ PG_RETURN_CSTRING(DatumGetCString(string_datum));
366
}
367
368
inline static Size
@@ -617,7 +617,7 @@ zson_info(PG_FUNCTION_ARGS)
617
(uint32)zson_size, (float)zson_size*100/(float)decoded_size
618
);
619
620
- PG_RETURN_CSTRING((Datum)string_buff);
+ PG_RETURN_CSTRING(string_buff);
621
622
623
/*
0 commit comments