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

Method clear_error

sql/sql_class.h:2411–2418  ·  view source on GitHub ↗

Clear the current error, if any. We do not clear is_fatal_error or is_fatal_sub_stmt_error since we assume this is never called if the fatal error is set. @todo: To silence an error, one should use Internal_error_handler mechanism. In future this function will be removed. */

Source from the content-addressed store, hash-verified

2409 mechanism. In future this function will be removed.
2410 */
2411 inline void clear_error()
2412 {
2413 DBUG_ENTER("clear_error");
2414 if (get_stmt_da()->is_error())
2415 get_stmt_da()->reset_diagnostics_area();
2416 is_slave_error= 0;
2417 DBUG_VOID_RETURN;
2418 }
2419#ifndef EMBEDDED_LIBRARY
2420 inline bool vio_ok() const { return net.vio != 0; }
2421 /** Return FALSE if connection to client is broken. */

Callers 3

log.ccFile · 0.80
hide_view_errorMethod · 0.80

Calls 2

is_errorMethod · 0.45

Tested by

no test coverage detected