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

Method copy_db_to

sql/sql_lex.cc:4464–4478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4462*/
4463
4464bool LEX::copy_db_to(LEX_CSTRING *to)
4465{
4466 if (!sphead || !sphead->m_name.str)
4467 return thd->copy_db_to(to);
4468
4469 DBUG_ASSERT(sphead->m_db.str);
4470 DBUG_ASSERT(sphead->m_db.length);
4471
4472 /*
4473 It is safe to assign the string by-pointer, both sphead and
4474 its statements reside in the same memory root.
4475 */
4476 *to= sphead->m_db;
4477 return FALSE;
4478}
4479
4480
4481Lex_ident_db_normalized LEX::copy_db_normalized()

Callers 4

sql_parse.ccFile · 0.45
prepare_schema_tableFunction · 0.45
add_table_to_listMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected