]> granicus.if.org Git - postgresql/commitdiff
Fix declarations of couple jsonpath functions
authorAlexander Korotkov <akorotkov@postgresql.org>
Sun, 19 May 2019 04:45:42 +0000 (07:45 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sun, 19 May 2019 04:45:42 +0000 (07:45 +0300)
Make jsonb_path_query_array() and jsonb_path_query_first() use
PG_FUNCTION_ARGS macro instead of its expansion.

src/backend/utils/adt/jsonpath_exec.c

index b6d6a243e528f9ecf9c864fd7e97283025dfb5ba..5d70c7a6a66a6ef4bd60afa3fb7cb53af4cf34be 100644 (file)
@@ -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);