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

Method clear

sql/sql_error.cc:201–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void Sql_condition::clear()
202{
203 m_class_origin.length(0);
204 m_subclass_origin.length(0);
205 m_constraint_catalog.length(0);
206 m_constraint_schema.length(0);
207 m_constraint_name.length(0);
208 m_catalog_name.length(0);
209 m_schema_name.length(0);
210 m_table_name.length(0);
211 m_column_name.length(0);
212 m_cursor_name.length(0);
213 m_message_text.length(0);
214 m_sql_errno= 0;
215 m_level= Sql_condition::WARN_LEVEL_ERROR;
216}
217
218Sql_condition::Sql_condition(MEM_ROOT *mem_root)
219 : Sql_alloc(),

Callers 6

clear_warning_infoMethod · 0.45
resetMethod · 0.45
lex_startFunction · 0.45
init_selectMethod · 0.45
session_updateMethod · 0.45
print_indexFunction · 0.45

Calls 3

free_rootFunction · 0.85
lengthMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected