| 7277 | } |
| 7278 | |
| 7279 | bool 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 | |
| 7297 | bool Discovered_table_list::add_file(const char *fname) |
| 7298 | { |
no test coverage detected