diff options
author | Alexander Nozdrin <alik@sun.com> | 2009-09-16 10:52:43 +0400 |
---|---|---|
committer | Alexander Nozdrin <alik@sun.com> | 2009-09-16 10:52:43 +0400 |
commit | 80c91e429876e66dfac0c288c8e390b553b5fb49 (patch) | |
tree | c54cce7e6f502a73331b395334f2ddd5b948280b /sql/sql_class.h | |
parent | 4bf2c41df4ea0d62ce6b66da155988aafe2328ba (diff) | |
parent | 7ee331ab5d35e0d428cebf56a385627f2c65f76c (diff) | |
download | mariadb-git-80c91e429876e66dfac0c288c8e390b553b5fb49.tar.gz |
Merge from mysql-5.1-bugteam.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index a8fe3227aeb..8a47c171cc6 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1092,6 +1092,31 @@ public: /** + This class is an internal error handler implementation for + DROP TABLE statements. The thing is that there may be warnings during + execution of these statements, which should not be exposed to the user. + This class is intended to silence such warnings. +*/ + +class Drop_table_error_handler : public Internal_error_handler +{ +public: + Drop_table_error_handler(Internal_error_handler *err_handler) + :m_err_handler(err_handler) + { } + +public: + bool handle_error(uint sql_errno, + const char *message, + MYSQL_ERROR::enum_warning_level level, + THD *thd); + +private: + Internal_error_handler *m_err_handler; +}; + + +/** Stores status of the currently executed statement. Cleared at the beginning of the statement, and then can hold either OK, ERROR, or EOF status. |