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

Method opt_clear

sql/sql_error.h:326–330  ·  view source on GitHub ↗

Only clear warning info if haven't yet done that already for the current query. Allows to be issued at any time during the query, without risk of clearing some warnings that have been generated by the current statement. @todo: This is a sign of sloppy coding. Instead we need to designate one place in a statement life cycle where we call Warning_info::clear(). @param q

Source from the content-addressed store, hash-verified

324 @param query_id Current query id.
325 */
326 void opt_clear(ulonglong query_id)
327 {
328 if (query_id != m_warn_id)
329 clear(query_id);
330 }
331
332 /**
333 Concatenate the list of warnings.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected