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

Method add_table

sql/handler.cc:7279–7295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7277}
7278
7279bool Discovered_table_list::add_table(const char *tname, size_t tlen)
7280{
7281 /*
7282 TODO Check with_temps and filter out temp tables.
7283 Implement the check, when we'll have at least one affected engine (with
7284 custom discover_table_names() method, that calls add_table() directly).
7285 Note: avoid comparing the same name twice (here and in add_file).
7286 */
7287 if (wild && table_alias_charset->wildcmp(tname, tname + tlen, wild, wend,
7288 wild_prefix, wild_one, wild_many))
7289 return 0;
7290
7291 LEX_CSTRING *name= thd->make_clex_string(tname, tlen);
7292 if (!name || tables->append(name))
7293 return 1;
7294 return 0;
7295}
7296
7297bool Discovered_table_list::add_file(const char *fname)
7298{

Callers 1

Calls 3

wildcmpMethod · 0.80
make_clex_stringMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected