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

Function find_unit_handler

sql/sql_union.cc:1365–1378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363*/
1364
1365static select_handler *find_unit_handler(THD *thd,
1366 SELECT_LEX_UNIT *unit)
1367{
1368 if (unit->outer_select())
1369 return nullptr;
1370
1371 for (SELECT_LEX *sl= unit->first_select(); sl; sl= sl->next_select())
1372 {
1373 select_handler *uh= find_unit_handler_for_lex(thd, sl, unit);
1374 if (uh)
1375 return uh;
1376 }
1377 return nullptr;
1378}
1379
1380
1381inline bool st_select_lex_unit::rename_item_list(TABLE_LIST *derived_arg)

Callers 1

prepareMethod · 0.85

Calls 4

first_selectMethod · 0.80
next_selectMethod · 0.80
outer_selectMethod · 0.45

Tested by

no test coverage detected