| 1363 | */ |
| 1364 | |
| 1365 | static 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 | |
| 1381 | inline bool st_select_lex_unit::rename_item_list(TABLE_LIST *derived_arg) |
no test coverage detected