* Marc Alff <marc.alff@stripped> [09/10/20 07:00]:
> > I want to return an error in the patch I submitted for
> > http://bugs.mysql.com/bug.php?id=48124
> > This document appears to be out of date:
> > http://forge.mysql.com/wiki/MySQL_Internals_Error_Messages
> >
> > How do I return an error for a SQL command? There is my_message,
> > my_error, my_printf_error and push_warning in MySQL source. Most of
> > these are not described by the URL above.
If you're extending a storage engine, you shouldn't raise an error
at all.
You should return an error code and expect the caller to invoke (or choose
not to invoke) handler::print_error().
--