MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / set_builtin_message_text

Method set_builtin_message_text

sql/sql_error.cc:289–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289void
290Sql_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
303const char*
304Sql_condition::get_message_text() const

Callers

nothing calls this directly

Calls 3

strdup_rootFunction · 0.85
is_allocedMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected