MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / test_limit

Method test_limit

sql/item_subselect.cc:418–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416
417
418bool Item_in_subselect::test_limit(st_select_lex_unit *unit_arg)
419{
420 if (unit_arg->fake_select_lex &&
421 unit_arg->fake_select_lex->test_limit())
422 return(1);
423
424 SELECT_LEX *sl= unit_arg->first_select();
425 for (; sl; sl= sl->next_select())
426 {
427 if (sl->test_limit())
428 return(1);
429 }
430 return(0);
431}
432
433Item_in_subselect::Item_in_subselect(Item * left_exp,
434 st_select_lex *select_lex):

Callers

nothing calls this directly

Calls 2

first_selectMethod · 0.80
next_selectMethod · 0.80

Tested by

no test coverage detected