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

Method Warning_info

sql/sql_error.cc:564–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564Warning_info::Warning_info(ulonglong warn_id_arg, bool allow_unlimited_warnings)
565 :m_current_statement_warn_count(0),
566 m_current_row_for_warning(1),
567 m_warn_id(warn_id_arg),
568 m_error_condition(NULL),
569 m_allow_unlimited_warnings(allow_unlimited_warnings),
570 m_read_only(FALSE)
571{
572 /* Initialize sub structures */
573 init_sql_alloc(&m_warn_root, WARN_ALLOC_BLOCK_SIZE, WARN_ALLOC_PREALLOC_SIZE);
574 m_warn_list.empty();
575 memset(m_warn_count, 0, sizeof(m_warn_count));
576}
577
578Warning_info::~Warning_info()
579{

Callers

nothing calls this directly

Calls 2

init_sql_allocFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected