MCPcopy Index your code
hub / github.com/Meituan-Dianping/SQLAdvisor / raise_note_printf

Method raise_note_printf

sql/sql_class.cc:689–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687}
688
689void THD::raise_note_printf(uint sql_errno, ...)
690{
691 va_list args;
692 char ebuff[MYSQL_ERRMSG_SIZE];
693 DBUG_ENTER("THD::raise_note_printf");
694 DBUG_PRINT("enter",("code: %u", sql_errno));
695 if (!(variables.option_bits & OPTION_SQL_NOTES))
696 DBUG_VOID_RETURN;
697 const char* format= ER(sql_errno);
698 va_start(args, sql_errno);
699 my_vsnprintf(ebuff, sizeof(ebuff), format, args);
700 va_end(args);
701 (void) raise_condition(sql_errno,
702 NULL,
703 Sql_condition::WARN_LEVEL_NOTE,
704 ebuff);
705 DBUG_VOID_RETURN;
706}
707
708
709struct timeval THD::query_start_timeval_trunc(uint decimals)

Callers

nothing calls this directly

Calls 1

my_vsnprintfFunction · 0.85

Tested by

no test coverage detected