| 4462 | */ |
| 4463 | |
| 4464 | bool 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 | |
| 4481 | Lex_ident_db_normalized LEX::copy_db_normalized() |
no outgoing calls
no test coverage detected