Content-Length: 273874 | pFad | http://github.com/postgrespro/postgres/commit/da24961e9e1d887111d17cc2dcece2e3946ca5a6

B2 Fix declarations of couple jsonpath functions · postgrespro/postgres@da24961 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/da24961e9e1d887111d17cc2dcece2e3946ca5a6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy