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

Method set

sql/sql_error.cc:272–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void
273Sql_condition::set(uint sql_errno, const char* sqlstate,
274 Sql_condition::enum_warning_level level, const char* msg)
275{
276 DBUG_ASSERT(sql_errno != 0);
277 DBUG_ASSERT(sqlstate != NULL);
278 DBUG_ASSERT(msg != NULL);
279
280 m_sql_errno= sql_errno;
281 memcpy(m_returned_sqlstate, sqlstate, SQLSTATE_LENGTH);
282 m_returned_sqlstate[SQLSTATE_LENGTH]= '\0';
283
284 set_class_origins();
285 set_builtin_message_text(msg);
286 m_level= level;
287}
288
289void
290Sql_condition::set_builtin_message_text(const char* str)

Callers 15

val_strMethod · 0.45
val_str_asciiMethod · 0.45
val_strMethod · 0.45
val_str_asciiMethod · 0.45
Item_sum_hybridMethod · 0.45
val_strMethod · 0.45
storeMethod · 0.45
copy_stringFunction · 0.45
push_warningMethod · 0.45
initMethod · 0.45
make_empty_resultMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected