Merge mysql.com:/home/ram/work/b30495/b30495.5.0

into  mysql.com:/home/ram/work/b30495/b30495.5.1
parents 1386274a 725b2d35
...@@ -56,3 +56,11 @@ show index from t1; ...@@ -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 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 t1 1 a 1 a A 5 NULL NULL YES BTREE
drop table t1; 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
...@@ -72,4 +72,16 @@ analyze table t1; ...@@ -72,4 +72,16 @@ analyze table t1;
show index from t1; show index from t1;
drop table t1; drop table t1;
# End of 4.1 tests --echo End of 4.1 tests
#
# Bug #30495: optimize table t1,t2,t3 extended errors
#
create table t1(a int);
--error 1064
analyze table t1 extended;
--error 1064
optimize table t1 extended;
drop table t1;
--echo End of 5.0 tests
...@@ -5439,7 +5439,7 @@ alter_commands: ...@@ -5439,7 +5439,7 @@ alter_commands:
lex->no_write_to_binlog= $3; lex->no_write_to_binlog= $3;
lex->check_opt.init(); lex->check_opt.init();
} }
opt_no_write_to_binlog opt_mi_check_type opt_no_write_to_binlog
| ANALYZE_SYM PARTITION_SYM opt_no_write_to_binlog | ANALYZE_SYM PARTITION_SYM opt_no_write_to_binlog
all_or_alt_part_name_list all_or_alt_part_name_list
{ {
...@@ -5448,7 +5448,6 @@ alter_commands: ...@@ -5448,7 +5448,6 @@ alter_commands:
lex->no_write_to_binlog= $3; lex->no_write_to_binlog= $3;
lex->check_opt.init(); lex->check_opt.init();
} }
opt_mi_check_type
| CHECK_SYM PARTITION_SYM all_or_alt_part_name_list | CHECK_SYM PARTITION_SYM all_or_alt_part_name_list
{ {
LEX *lex= Lex; LEX *lex= Lex;
...@@ -5931,7 +5930,7 @@ analyze: ...@@ -5931,7 +5930,7 @@ analyze:
lex->no_write_to_binlog= $2; lex->no_write_to_binlog= $2;
lex->check_opt.init(); lex->check_opt.init();
} }
table_list opt_mi_check_type table_list
{} {}
; ;
...@@ -5987,7 +5986,7 @@ optimize: ...@@ -5987,7 +5986,7 @@ optimize:
lex->no_write_to_binlog= $2; lex->no_write_to_binlog= $2;
lex->check_opt.init(); lex->check_opt.init();
} }
table_list opt_mi_check_type table_list
{} {}
; ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment