summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-09-16 10:52:43 +0400
committerAlexander Nozdrin <alik@sun.com>2009-09-16 10:52:43 +0400
commit80c91e429876e66dfac0c288c8e390b553b5fb49 (patch)
treec54cce7e6f502a73331b395334f2ddd5b948280b /sql/sql_class.h
parent4bf2c41df4ea0d62ce6b66da155988aafe2328ba (diff)
parent7ee331ab5d35e0d428cebf56a385627f2c65f76c (diff)
downloadmariadb-git-80c91e429876e66dfac0c288c8e390b553b5fb49.tar.gz
Merge from mysql-5.1-bugteam.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h25
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.