Convert a LEX_CSTRING to a valid normalized database name: - validated with Lex_ident_fs::check_db_name() - optionally lower-cased when lower_case_table_names>0 The lower-cased copy is created on Query_arena::mem_root, when needed. @param name - The name to normalize. Must not be {NULL,0}. @return - {NULL,0} on EOM or a bad database name
| 1588 | or a good database name otherwise. |
| 1589 | */ |
| 1590 | Lex_ident_db_normalized to_ident_db_normalized_with_error( |
| 1591 | const LEX_CSTRING &name) |
| 1592 | { |
| 1593 | Lex_ident_db tmp= to_ident_db_opt_casedn_with_error(name, |
| 1594 | lower_case_table_names > 0); |
| 1595 | return Lex_ident_db_normalized(tmp); |
| 1596 | } |
| 1597 | |
| 1598 | void set_query_arena(Query_arena *set); |
| 1599 |
no test coverage detected