~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/alter_table_rename_plus.test

  • Committer: Stewart Smith
  • Date: 2011-02-28 06:44:28 UTC
  • mto: (2241.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2242.
  • Revision ID: stewart@flamingspork.com-20110228064428-7xlmxxqwm8w2z4ec
add a test for ALTER TABLE with both renaming the table and another operation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CREATE TABLE t1 (a int primary key);
 
2
ALTER TABLE t1 RENAME t2, ADD COLUMN b int;
 
3
show tables;
 
4
show create table t2;
 
5
ALTER TABLE t2 ADD COLUMN c int, rename t3;
 
6
show tables;
 
7
show create table t3;
 
8
DROP TABLE t3;