Allow ``sql_error_handler`` to return a value.