Hi, Alexey!
On Mar 20, Alexey Botchkov wrote:
This looks too complex to me. Why would you extend the base
Internal_error_handler class - no other error handler did that or needed
that, fwiw.
Here I tried to come up with what I think is a simpler approach. It
basically uses a buffer in the THD, but just like the old code, this
buffer is in the Diagnostic_area, it's the last error message.
There is also one problem with thd->clear_error() that is used
everywhere in sql_show.cc. I did not fix it, only added a comment about
it. Eventually we will need to remove thd->clear_error() completely, it is
conceptually incompatible with the pluggable auditing.
See the attached patch.
Regards,
Sergei