MCPcopy Create free account
hub / github.com/MariaDB/server / report_error

Method report_error

sql/sql_prepare.cc:4006–4022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4004/** Push an error to the error stack and return TRUE for now. */
4005
4006bool
4007Reprepare_observer::report_error(THD *thd)
4008{
4009 /*
4010 This 'error' is purely internal to the server:
4011 - No exception handler is invoked,
4012 - No condition is added in the condition area (warn_list).
4013 The diagnostics area is set to an error status to enforce
4014 that this thread execution stops and returns to the caller,
4015 backtracking all the way to Prepared_statement::execute_loop().
4016 */
4017 thd->get_stmt_da()->set_error_status(ER_NEED_REPREPARE);
4018 m_invalidated= TRUE;
4019 m_attempt++;
4020
4021 return TRUE;
4022}
4023
4024
4025/*******************************************************************

Calls 2

get_stmt_daMethod · 0.80
set_error_statusMethod · 0.45

Tested by

no test coverage detected