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

Function json_path_compare

sql/item_jsonfunc.cc:290–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288
289
290int json_path_compare(const json_path_t *a, const json_path_t *b,
291 enum json_value_types vt,
292 MEM_ROOT_DYNAMIC_ARRAY *array_size)
293{
294 json_path_step_t *a_init= (json_path_step_t*)(a->steps.buffer),
295 *b_init= (json_path_step_t*)(b->steps.buffer),
296 *a_last_step= (json_path_step_t*)(a->steps.buffer)+ a->last_step_idx,
297 *b_last_step= (json_path_step_t*)(b->steps.buffer) + b->last_step_idx;
298
299 return
300 json_path_parts_compare(&(a->steps), a_init + 1,
301 a_last_step,
302 &(b->steps), b_init + 1,
303 b_last_step, vt, array_size);
304}
305
306
307static int json_nice(json_engine_t *je, String *nice_js,

Callers 4

scan_nextMethod · 0.85
path_exactFunction · 0.85
path_okFunction · 0.85
val_boolMethod · 0.85

Calls 1

json_path_parts_compareFunction · 0.85

Tested by

no test coverage detected