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

Method rnd_init

sql/json_table.cc:364–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362
363
364int ha_json_table::rnd_init(bool scan)
365{
366 Json_table_nested_path &p= m_jt->m_nested_path;
367 DBUG_ENTER("ha_json_table::rnd_init");
368
369 if ((m_js= m_jt->m_json->val_str(&m_tmps)))
370 {
371 p.scan_start(m_js->charset(),
372 (const uchar *) m_js->ptr(), (const uchar *) m_js->end());
373 }
374
375 mem_root_dynamic_array_init(current_thd->mem_root, PSI_INSTRUMENT_MEM,
376 &array_counters, sizeof(int), NULL,
377 JSON_DEPTH_DEFAULT, JSON_DEPTH_INC, MYF(0));
378 mem_root_dynamic_array_init(current_thd->mem_root, PSI_INSTRUMENT_MEM,
379 &je.stack, sizeof(int), NULL,
380 JSON_DEPTH_DEFAULT, JSON_DEPTH_INC, MYF(0));
381
382 DBUG_RETURN(0);
383}
384
385
386/*

Callers 1

ha_write_rowMethod · 0.45

Calls 6

scan_startMethod · 0.80
val_strMethod · 0.45
charsetMethod · 0.45
ptrMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected