| 287 | } |
| 288 | |
| 289 | void |
| 290 | Sql_condition::set_builtin_message_text(const char* str) |
| 291 | { |
| 292 | /* |
| 293 | See the comments |
| 294 | "Design notes about Sql_condition::m_message_text." |
| 295 | */ |
| 296 | const char* copy; |
| 297 | |
| 298 | copy= strdup_root(m_mem_root, str); |
| 299 | m_message_text.set(copy, strlen(copy), error_message_charset_info); |
| 300 | DBUG_ASSERT(! m_message_text.is_alloced()); |
| 301 | } |
| 302 | |
| 303 | const char* |
| 304 | Sql_condition::get_message_text() const |
nothing calls this directly
no test coverage detected