MySQL 9.0.0
Source Code Documentation
Filesort_error_handler Class Reference

Error handler for filesort. More...

Inheritance diagram for Filesort_error_handler:
[legend]

Public Member Functions

 Filesort_error_handler (THD *thd)
 Create an error handler and push it onto the error handler stack. More...
 
 ~Filesort_error_handler () override
 Pop the error handler from the error handler stack, and destroy it. More...
 
bool handle_condition (THD *, uint sql_errno, const char *, Sql_condition::enum_severity_level *level, const char *) override
 Handle a condition. More...
 

Private Attributes

THDm_thd
 The THD in which filesort is executed. More...
 
bool m_seen_not_supported
 Has a not supported warning has been seen? More...
 

Additional Inherited Members

- Protected Member Functions inherited from Internal_error_handler
 Internal_error_handler ()
 
Internal_error_handlerprev_internal_handler () const
 
virtual ~Internal_error_handler ()=default
 

Detailed Description

Error handler for filesort.

Constructor & Destructor Documentation

◆ Filesort_error_handler()

Filesort_error_handler::Filesort_error_handler ( THD thd)
inline

Create an error handler and push it onto the error handler stack.

The handler will be automatically popped from the error handler stack when it is destroyed.

◆ ~Filesort_error_handler()

Filesort_error_handler::~Filesort_error_handler ( )
inlineoverride

Pop the error handler from the error handler stack, and destroy it.

Member Function Documentation

◆ handle_condition()

bool Filesort_error_handler::handle_condition ( THD ,
uint  sql_errno,
const char *  ,
Sql_condition::enum_severity_level level,
const char *   
)
inlineoverridevirtual

Handle a condition.

The handler will make sure that no more than a single ER_NOT_SUPPORTED_YET warning will be seen by the higher layers. This warning is generated by Json_wrapper::make_sort_key() for every value that it doesn't know how to create a sort key for. It is sufficient for the higher layers to report this warning only once per sort.

Implements Internal_error_handler.

Member Data Documentation

◆ m_seen_not_supported

bool Filesort_error_handler::m_seen_not_supported
private

Has a not supported warning has been seen?

◆ m_thd

THD* Filesort_error_handler::m_thd
private

The THD in which filesort is executed.


The documentation for this class was generated from the following file: