Clear the current error, if any. We do not clear is_fatal_error or is_fatal_sub_stmt_error since we assume this is never called if the fatal error is set. @todo: To silence an error, one should use Internal_error_handler mechanism. In future this function will be removed. */
| 2409 | mechanism. In future this function will be removed. |
| 2410 | */ |
| 2411 | inline void clear_error() |
| 2412 | { |
| 2413 | DBUG_ENTER("clear_error"); |
| 2414 | if (get_stmt_da()->is_error()) |
| 2415 | get_stmt_da()->reset_diagnostics_area(); |
| 2416 | is_slave_error= 0; |
| 2417 | DBUG_VOID_RETURN; |
| 2418 | } |
| 2419 | #ifndef EMBEDDED_LIBRARY |
| 2420 | inline bool vio_ok() const { return net.vio != 0; } |
| 2421 | /** Return FALSE if connection to client is broken. */ |
no test coverage detected