Skip to content

Commit da24961

Browse files
committed
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.
1 parent 87bcc02 commit da24961

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/jsonpath_exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ jsonb_path_query(PG_FUNCTION_ARGS)
413413
* jsonb array.
414414
*/
415415
Datum
416-
jsonb_path_query_array(FunctionCallInfo fcinfo)
416+
jsonb_path_query_array(PG_FUNCTION_ARGS)
417417
{
418418
Jsonb *jb = PG_GETARG_JSONB_P(0);
419419
JsonPath *jp = PG_GETARG_JSONPATH_P(1);
@@ -432,7 +432,7 @@ jsonb_path_query_array(FunctionCallInfo fcinfo)
432432
* item. If there are no items, NULL returned.
433433
*/
434434
Datum
435-
jsonb_path_query_first(FunctionCallInfo fcinfo)
435+
jsonb_path_query_first(PG_FUNCTION_ARGS)
436436
{
437437
Jsonb *jb = PG_GETARG_JSONB_P(0);
438438
JsonPath *jp = PG_GETARG_JSONPATH_P(1);

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