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

Method set_builtin_message_text

sql/sql_error.cc:211–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210
211void
212Sql_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
225const char*
226Sql_condition::get_message_text() const

Callers 1

Calls 3

strdup_rootFunction · 0.85
setMethod · 0.45
is_allocedMethod · 0.45

Tested by

no test coverage detected