summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-05-25 18:33:36 +0300
committerunknown <monty@mysql.com>2005-05-25 18:33:36 +0300
commit1834f8899fc55184fc7aa5c1f918f712e045ac4c (patch)
treeb5c430040053eaeddfd2f77399d7a6ef8298deb1 /sql/sql_lex.h
parentcfb54ed5141c1b6ba5989658180d7d87a87bf613 (diff)
downloadmariadb-git-1834f8899fc55184fc7aa5c1f918f712e045ac4c.tar.gz
Fix that we can read tables with the 'older' decimal format used in 5.0.3 & 5.0.4
We will however give a warning when opening such a table that users should use ALTER TABLE ... FORCE to fix the table. In future release we will fix that REPAIR TABLE will be able to handle this case sql/sql_lex.h: Support for ALTER TABLE ... FORCE sql/sql_table.cc: CHECK TABLE now gives a note if table->s->crashed was set sql/sql_yacc.yy: Support for ALTER TABLE ... FORCE sql/table.cc: Fix that we can read tables with the 'older' decimal format used in 5.0.3 & 5.0.4 (Now we store display length in the .frm table while we previously stored precision) sql/table.h: Store in TABLE_SHARE version number of MySQL where table was created (or checked)
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index fffb8ff9ae6..269f8b295f9 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -635,6 +635,7 @@ typedef class st_select_lex SELECT_LEX;
#define ALTER_CHANGE_COLUMN_DEFAULT 256
#define ALTER_KEYS_ONOFF 512
#define ALTER_CONVERT 1024
+#define ALTER_FORCE 2048
typedef struct st_alter_info
{