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

Function push_warning_printf

sql/sql_error.cc:797–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795*/
796
797void push_warning_printf(THD *thd, Sql_condition::enum_warning_level level,
798 uint code, const char *format, ...)
799{
800 va_list args;
801 char warning[MYSQL_ERRMSG_SIZE];
802 DBUG_ENTER("push_warning_printf");
803 DBUG_PRINT("enter",("warning: %u", code));
804
805 DBUG_ASSERT(code != 0);
806 DBUG_ASSERT(format != NULL);
807
808 va_start(args,format);
809 my_vsnprintf_ex(&my_charset_utf8_general_ci, warning,
810 sizeof(warning), format, args);
811 va_end(args);
812 push_warning(thd, level, code, warning);
813 DBUG_VOID_RETURN;
814}
815
816
817/*

Callers 15

date_add_intervalFunction · 0.85
extract_date_timeFunction · 0.85
val_str_asciiMethod · 0.85
val_strMethod · 0.85
get_localeMethod · 0.85
val_intMethod · 0.85
val_decimalMethod · 0.85
val_intMethod · 0.85
createMethod · 0.85
my_locale_by_nameFunction · 0.85

Calls 2

my_vsnprintf_exFunction · 0.85
push_warningFunction · 0.85

Tested by

no test coverage detected