diff options
author | Alexander Korotkov | 2019-05-19 04:45:42 +0000 |
---|---|---|
committer | Alexander Korotkov | 2019-05-19 04:45:42 +0000 |
commit | da24961e9e1d887111d17cc2dcece2e3946ca5a6 (patch) | |
tree | 1e94507874b2f160b22a282f35467cbd701187d0 | |
parent | 87bcc02f4f739d76703feee0ff8346b98fa9b907 (diff) |
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.
-rw-r--r-- | src/backend/utils/adt/jsonpath_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/jsonpath_exec.c b/src/backend/utils/adt/jsonpath_exec.c index b6d6a243e5..5d70c7a6a6 100644 --- a/src/backend/utils/adt/jsonpath_exec.c +++ b/src/backend/utils/adt/jsonpath_exec.c @@ -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); |