diff options
author | unknown <mikael@zim.(none)> | 2006-03-16 03:21:15 -0800 |
---|---|---|
committer | unknown <mikael@zim.(none)> | 2006-03-16 03:21:15 -0800 |
commit | 01cce283a7ce89ac9b0f3866eaafebb8c34e0600 (patch) | |
tree | 2fea15b826dc595fcef51046e77ef082380b3bf4 /mysql-test/t/partition.test | |
parent | 2d360cd035849ad678253be7f0d0f559ebe1898d (diff) | |
download | mariadb-git-01cce283a7ce89ac9b0f3866eaafebb8c34e0600.tar.gz |
BUG#17772
A crash after ALTER TABLE t1 RENAME ...
mysql-test/r/partition.result:
New test case
mysql-test/t/partition.test:
New test case
sql/sql_lex.h:
Introduced like name for CREATE TABLE t1 LIKE t2
sql/sql_parse.cc:
Introduced like name for CREATE TABLE t1 LIKE t2
sql/sql_partition.cc:
Introduced like name for CREATE TABLE t1 LIKE t2
sql/sql_yacc.yy:
Introduced like name for CREATE TABLE t1 LIKE t2
Diffstat (limited to 'mysql-test/t/partition.test')
-rw-r--r-- | mysql-test/t/partition.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/partition.test b/mysql-test/t/partition.test index bac8b6573e6..73949733426 100644 --- a/mysql-test/t/partition.test +++ b/mysql-test/t/partition.test @@ -697,4 +697,21 @@ alter table t1 add primary key (b); show create table t1; drop table t1; +############################################ +# +# Author: Mikael Ronstrom +# Date: 2006-03-01 +# Purpose +# Bug 17772: Crash at ALTER TABLE with rename +# and add column + comment on +# partitioned table +# +############################################ +create table t1 (a int unsigned not null auto_increment primary key) +partition by key(a); +alter table t1 rename t2, add c char(10), comment "no comment"; +show create table t2; + +drop table t2; + --echo End of 5.1 tests |