Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0739c83

Browse filesBrowse files
committed
Fix the warnings when compiling against the current master branch of PostgreSQL
1 parent a670585 commit 0739c83
Copy full SHA for 0739c83

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎zson.c

Copy file name to clipboardExpand all lines: zson.c
+2-2
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ zson_out(PG_FUNCTION_ARGS)
362362
Datum zson_datum = PointerGetDatum(zson_bytea);
363363
Datum jsonb_datum = DirectFunctionCall1(zson_to_jsonb, zson_datum);
364364
Datum string_datum = DirectFunctionCall1(jsonb_out, jsonb_datum);
365-
PG_RETURN_CSTRING(string_datum);
365+
PG_RETURN_CSTRING(DatumGetCString(string_datum));
366366
}
367367

368368
inline static Size
@@ -617,7 +617,7 @@ zson_info(PG_FUNCTION_ARGS)
617617
(uint32)zson_size, (float)zson_size*100/(float)decoded_size
618618
);
619619

620-
PG_RETURN_CSTRING((Datum)string_buff);
620+
PG_RETURN_CSTRING(string_buff);
621621
}
622622

623623
/*

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.