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

Method to_ident_db_normalized_with_error

sql/sql_class.h:1590–1596  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 6

copy_db_normalizedMethod · 0.80
make_sp_nameMethod · 0.80
call_statement_startMethod · 0.80
stmt_drop_routineMethod · 0.80

Calls 1

Tested by

no test coverage detected