@@ -819,8 +819,8 @@ gin_debug_jsonpath_internal(FunctionCallInfo fcinfo,
819819 if (PG_GETARG_BOOL (4 ))
820820 optimize |= optSelectivity ;
821821
822- root = extractJsonPath (jp , exists , arrayPathItems , optimize ,
823- makeHandler , checkHandler , extra );
822+ root = extractJsonPathQuery (jp , exists , arrayPathItems , optimize ,
823+ makeHandler , checkHandler , extra );
824824 s = debugExtractedQuery (root );
825825
826826 return cstring_to_text (s );
@@ -879,13 +879,13 @@ gin_extract_jsonb_query_value_path(PG_FUNCTION_ARGS)
879879 case JsonpathExistsStrategyNumber :
880880 case JsonpathMatchStrategyNumber :
881881 if (strategy != JsQueryMatchStrategyNumber )
882- root = extractJsonPath (PG_GETARG_JSONPATH_P (0 ),
883- strategy == JsonpathExistsStrategyNumber ,
884- false,
885- optAll ,
886- make_value_path_entry_handler ,
887- check_value_path_entry_handler ,
888- (Pointer )& e );
882+ root = extractJsonPathQuery (PG_GETARG_JSONPATH_P (0 ),
883+ strategy == JsonpathExistsStrategyNumber ,
884+ false,
885+ optAll ,
886+ make_value_path_entry_handler ,
887+ check_value_path_entry_handler ,
888+ (Pointer ) & e );
889889 else
890890#endif
891891 root = extractJsQuery (PG_GETARG_JSQUERY (0 ),
@@ -1381,13 +1381,13 @@ gin_extract_jsonb_query_path_value_internal(FunctionCallInfo fcinfo, bool lax)
13811381 case JsonpathExistsStrategyNumber :
13821382 case JsonpathMatchStrategyNumber :
13831383 if (strategy != JsQueryMatchStrategyNumber )
1384- root = extractJsonPath (PG_GETARG_JSONPATH_P (0 ),
1385- strategy == JsonpathExistsStrategyNumber ,
1386- !lax ,
1387- optAll ,
1388- make_path_value_entry_handler ,
1389- check_path_value_entry_handler ,
1390- (Pointer ) & extra );
1384+ root = extractJsonPathQuery (PG_GETARG_JSONPATH_P (0 ),
1385+ strategy == JsonpathExistsStrategyNumber ,
1386+ !lax ,
1387+ optAll ,
1388+ make_path_value_entry_handler ,
1389+ check_path_value_entry_handler ,
1390+ (Pointer ) & extra );
13911391 else
13921392#endif
13931393 root = extractJsQuery (PG_GETARG_JSQUERY (0 ),
0 commit comments