summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@oracle.com>2010-08-18 13:29:04 +0200
committerJon Olav Hauglid <jon.hauglid@oracle.com>2010-08-18 13:29:04 +0200
commiteb498cce4dafc2eda285c71ed96d64e451f02ec2 (patch)
treeb38d061771d52ab55fe9d428e45627d4c08d5f63 /sql/sql_lex.h
parent6293c44ff6debb4f617260df727b281e77a41b5c (diff)
parente28d6ee66a8404dd0f8fe3aaabb9d72544e5d42e (diff)
downloadmariadb-git-eb498cce4dafc2eda285c71ed96d64e451f02ec2.tar.gz
Manual merge from mysql-5.5-bugfixing to mysql-5.5-runtime.
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index e6c4e69d1a6..0eb8e5de6d2 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -919,6 +919,24 @@ enum enum_alter_table_change_level
ALTER_TABLE_INDEX_CHANGED= 2
};
+
+/**
+ Temporary hack to enable a class bound forward declaration
+ of the enum_alter_table_change_level enumeration. To be
+ removed once Alter_info is moved to the sql_alter.h
+ header.
+*/
+class Alter_table_change_level
+{
+private:
+ typedef enum enum_alter_table_change_level enum_type;
+ enum_type value;
+public:
+ void operator = (enum_type v) { value = v; }
+ operator enum_type () { return value; }
+};
+
+
/**
@brief Parsing data for CREATE or ALTER TABLE.