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

Method raise_error_printf

sql/sql_class.cc:632–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632void THD::raise_error_printf(uint sql_errno, ...)
633{
634 va_list args;
635 char ebuff[MYSQL_ERRMSG_SIZE];
636 DBUG_ENTER("THD::raise_error_printf");
637 DBUG_PRINT("my", ("nr: %d errno: %d", sql_errno, errno));
638 const char* format= ER(sql_errno);
639 va_start(args, sql_errno);
640 my_vsnprintf(ebuff, sizeof(ebuff), format, args);
641 va_end(args);
642 (void) raise_condition(sql_errno,
643 NULL,
644 Sql_condition::WARN_LEVEL_ERROR,
645 ebuff);
646 DBUG_VOID_RETURN;
647}
648
649void THD::raise_warning(uint sql_errno)
650{

Callers

nothing calls this directly

Calls 1

my_vsnprintfFunction · 0.85

Tested by

no test coverage detected