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

Method raise_warning_printf

sql/sql_class.cc:658–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656}
657
658void THD::raise_warning_printf(uint sql_errno, ...)
659{
660 va_list args;
661 char ebuff[MYSQL_ERRMSG_SIZE];
662 DBUG_ENTER("THD::raise_warning_printf");
663 DBUG_PRINT("enter", ("warning: %u", sql_errno));
664 const char* format= ER(sql_errno);
665 va_start(args, sql_errno);
666 my_vsnprintf(ebuff, sizeof(ebuff), format, args);
667 va_end(args);
668 (void) raise_condition(sql_errno,
669 NULL,
670 Sql_condition::WARN_LEVEL_WARN,
671 ebuff);
672 DBUG_VOID_RETURN;
673}
674
675void THD::raise_note(uint sql_errno)
676{

Callers

nothing calls this directly

Calls 1

my_vsnprintfFunction · 0.85

Tested by

no test coverage detected