| 209 | |
| 210 | |
| 211 | void |
| 212 | Sql_condition::set_builtin_message_text(const char* str) |
| 213 | { |
| 214 | /* |
| 215 | See the comments |
| 216 | "Design notes about Sql_condition::m_message_text." |
| 217 | */ |
| 218 | const char* copy; |
| 219 | |
| 220 | copy= m_mem_root ? strdup_root(m_mem_root, str) : str; |
| 221 | m_message_text.set(copy, strlen(copy), error_message_charset_info); |
| 222 | DBUG_ASSERT(! m_message_text.is_alloced()); |
| 223 | } |
| 224 | |
| 225 | const char* |
| 226 | Sql_condition::get_message_text() const |
no test coverage detected