mirror of
https://github.com/postgres/postgres.git
synced 2025-08-09 17:03:00 +03:00
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.
This commit is contained in:
@@ -413,7 +413,7 @@ jsonb_path_query(PG_FUNCTION_ARGS)
|
|||||||
* jsonb array.
|
* jsonb array.
|
||||||
*/
|
*/
|
||||||
Datum
|
Datum
|
||||||
jsonb_path_query_array(FunctionCallInfo fcinfo)
|
jsonb_path_query_array(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
Jsonb *jb = PG_GETARG_JSONB_P(0);
|
Jsonb *jb = PG_GETARG_JSONB_P(0);
|
||||||
JsonPath *jp = PG_GETARG_JSONPATH_P(1);
|
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.
|
* item. If there are no items, NULL returned.
|
||||||
*/
|
*/
|
||||||
Datum
|
Datum
|
||||||
jsonb_path_query_first(FunctionCallInfo fcinfo)
|
jsonb_path_query_first(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
Jsonb *jb = PG_GETARG_JSONB_P(0);
|
Jsonb *jb = PG_GETARG_JSONB_P(0);
|
||||||
JsonPath *jp = PG_GETARG_JSONPATH_P(1);
|
JsonPath *jp = PG_GETARG_JSONPATH_P(1);
|
||||||
|
Reference in New Issue
Block a user