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

Method reset_diagnostics_area

sql/sql_error.cc:399–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397*/
398
399void
400Diagnostics_area::reset_diagnostics_area()
401{
402 DBUG_ENTER("reset_diagnostics_area");
403#ifdef DBUG_OFF
404 set_overwrite_status(false);
405 /** Don't take chances in production */
406 m_message[0]= '\0';
407 m_sql_errno= 0;
408 m_affected_rows= 0;
409 m_last_insert_id= 0;
410 m_statement_warn_count= 0;
411#endif
412 get_warning_info()->clear_error_condition();
413 set_is_sent(false);
414 /** Tiny reset in debug mode to see garbage right away */
415 m_status= DA_EMPTY;
416 DBUG_VOID_RETURN;
417}
418
419
420/**

Callers 2

clear_errorMethod · 0.80

Calls 1

clear_error_conditionMethod · 0.80

Tested by

no test coverage detected