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

Method find_underlying_table

sql/table.cc:6594–6611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6592*/
6593
6594TABLE_LIST *TABLE_LIST::find_underlying_table(TABLE *table_to_find)
6595{
6596 /* is this real table and table which we are looking for? */
6597 if (table == table_to_find && view == 0)
6598 return this;
6599 if (!view)
6600 return 0;
6601
6602 for (TABLE_LIST *tbl= view->first_select_lex()->get_table_list();
6603 tbl;
6604 tbl= tbl->next_local)
6605 {
6606 TABLE_LIST *result;
6607 if ((result= tbl->find_underlying_table(table_to_find)))
6608 return result;
6609 }
6610 return 0;
6611}
6612
6613/*
6614 cleanup items belonged to view fields translation table

Callers 1

find_dup_tableFunction · 0.80

Calls 2

get_table_listMethod · 0.80
first_select_lexMethod · 0.80

Tested by

no test coverage detected