Commit da24961e authored by Alexander Korotkov's avatar Alexander Korotkov

Fix declarations of couple jsonpath functions

Make jsonb_path_query_array() and jsonb_path_query_first() use
PG_FUNCTION_ARGS macro instead of its expansion.
parent 87bcc02f
......@@ -413,7 +413,7 @@ jsonb_path_query(PG_FUNCTION_ARGS)
* jsonb array.
*/
Datum
jsonb_path_query_array(FunctionCallInfo fcinfo)
jsonb_path_query_array(PG_FUNCTION_ARGS)
{
Jsonb *jb = PG_GETARG_JSONB_P(0);
JsonPath *jp = PG_GETARG_JSONPATH_P(1);
......@@ -432,7 +432,7 @@ jsonb_path_query_array(FunctionCallInfo fcinfo)
* item. If there are no items, NULL returned.
*/
Datum
jsonb_path_query_first(FunctionCallInfo fcinfo)
jsonb_path_query_first(PG_FUNCTION_ARGS)
{
Jsonb *jb = PG_GETARG_JSONB_P(0);
JsonPath *jp = PG_GETARG_JSONPATH_P(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment