Skip to content

Commit

Permalink
[#5408] [YSQL] Fix declarations of couple jsonpath functions
Browse files Browse the repository at this point in the history
Summary:
Original commit was da24961e9e1d887111d17cc2dcece2e3946ca5a6

Commit message was

    Make jsonb_path_query_array() and jsonb_path_query_first() use
    PG_FUNCTION_ARGS macro instead of its expansion.

Test Plan: Build yugabyte db and run test

Reviewers: mihnea, jason

Reviewed By: jason

Subscribers: yql

Differential Revision: https://phabricator.dev.yugabyte.com/D9463
  • Loading branch information
tedyu committed Sep 25, 2020
1 parent 125f300 commit 34cbfe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/postgres/src/backend/utils/adt/jsonpath_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,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);
Expand All @@ -436,7 +436,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);
Expand Down

0 comments on commit 34cbfe2

Please sign in to comment.