MCPcopy Create free account
hub / github.com/MariaDB/server / path_exact

Function path_exact

sql/item_jsonfunc.cc:1202–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200
1201
1202static int path_exact(const json_path_with_flags *paths_list, int n_paths,
1203 const json_path_t *p, json_value_types vt,
1204 MEM_ROOT_DYNAMIC_ARRAY *array_size_counter)
1205{
1206 int count_path= 0;
1207 for (; n_paths > 0; n_paths--, paths_list++)
1208 {
1209 if (json_path_compare(&paths_list->p, p, vt, array_size_counter) == 0)
1210 count_path++;
1211 }
1212 return count_path;
1213}
1214
1215
1216static bool path_ok(const json_path_with_flags *paths_list, int n_paths,

Callers 1

read_jsonMethod · 0.85

Calls 1

json_path_compareFunction · 0.85

Tested by

no test coverage detected