| 4004 | /** Push an error to the error stack and return TRUE for now. */ |
| 4005 | |
| 4006 | bool |
| 4007 | Reprepare_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 | /******************************************************************* |
no test coverage detected