diff options
author | unknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru> | 2007-11-21 11:11:22 +0400 |
---|---|---|
committer | unknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru> | 2007-11-21 11:11:22 +0400 |
commit | 18851d9ea771499f5e84267d2ed5c16768942f86 (patch) | |
tree | feb7a77f624de6cb6d1064c296c8db925dfbc6f7 /mysql-test/r/analyze.result | |
parent | 3f43b07b4ae78728c9bc6e608eb66ba2c35ce9a8 (diff) | |
download | mariadb-git-18851d9ea771499f5e84267d2ed5c16768942f86.tar.gz |
Fix for bug #30495: optimize table t1,t2,t3 extended errors
Problem: we have CHECK TABLE options allowed (by accident?) for
ANALYZE/OPTIMIZE TABLE.
Fix: disable them.
Note: it might require additional fixes in 5.1/6.0
mysql-test/r/analyze.result:
Fix for bug #30495: optimize table t1,t2,t3 extended errors
- test result.
mysql-test/t/analyze.test:
Fix for bug #30495: optimize table t1,t2,t3 extended errors
- test case.
sql/sql_yacc.yy:
Fix for bug #30495: optimize table t1,t2,t3 extended errors
- opt_mi_check_type (CHECK TABLE options) removed from analyze: and optimize:
Diffstat (limited to 'mysql-test/r/analyze.result')
-rw-r--r-- | mysql-test/r/analyze.result | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/analyze.result b/mysql-test/r/analyze.result index 7b476c3cca2..c3dbb846402 100644 --- a/mysql-test/r/analyze.result +++ b/mysql-test/r/analyze.result @@ -56,3 +56,11 @@ show index from t1; Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment t1 1 a 1 a A 5 NULL NULL YES BTREE drop table t1; +End of 4.1 tests +create table t1(a int); +analyze table t1 extended; +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'extended' at line 1 +optimize table t1 extended; +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'extended' at line 1 +drop table t1; +End of 5.0 tests |