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

Function test_if_use_dynamic_range_scan

sql/sql_select.cc:25700–25716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25698*/
25699
25700static
25701int test_if_use_dynamic_range_scan(JOIN_TAB *join_tab)
25702{
25703 if (unlikely(join_tab->use_quick == 2))
25704 {
25705 quick_select_return res= test_if_quick_select(join_tab);
25706 if (res == SQL_SELECT::ERROR)
25707 return -1;
25708 else
25709 {
25710 /* Both OK and IMPOSSIBLE_RANGE go here */
25711 return join_tab->select->quick ? 1 : 0;
25712 }
25713 }
25714 else
25715 return 0;
25716}
25717
25718
25719int join_init_read_record(JOIN_TAB *tab)

Callers 1

sub_select_cacheFunction · 0.85

Calls 1

test_if_quick_selectFunction · 0.85

Tested by

no test coverage detected