![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
Error handling class for range optimizer. More...
#include <internal.h>
Public Member Functions | |
| Range_optimizer_error_handler () | |
| bool | handle_condition (THD *thd, uint sql_errno, const char *, Sql_condition::enum_severity_level *level, const char *) override | 
| Handle a sql condition.  More... | |
| bool | has_errors () const | 
Private Attributes | |
| bool | m_has_errors | 
| bool | m_is_mem_error | 
Additional Inherited Members | |
  Protected Member Functions inherited from Internal_error_handler | |
| Internal_error_handler () | |
| Internal_error_handler * | prev_internal_handler () const | 
| virtual | ~Internal_error_handler ()=default | 
Error handling class for range optimizer.
We handle only out of memory error here. This is to give a hint to the user to raise range_optimizer_max_mem_size if required. Warning for the memory error is pushed only once. The consequent errors will be ignored.
      
  | 
  inline | 
      
  | 
  inlineoverridevirtual | 
Handle a sql condition.
This method can be implemented by a subclass to achieve any of the following:
This mechanism is similar to C++ try/throw/catch:
THD::push_internal_handler(),my_error(), which invokes my_message_sql(),THD::pop_internal_handler().| thd | the calling thread | 
| sql_errno | the error number for the condition raised. | 
| sqlstate | the SQLSTATE for the condition raised. | 
| level | the severity level for the condition raised. | 
| msg | the error message for the condition raised. | 
Implements Internal_error_handler.
      
  | 
  inline | 
      
  | 
  private | 
      
  | 
  private |