diff options
author | monty@donna.mysql.fi <> | 2001-02-21 14:16:00 +0200 |
---|---|---|
committer | monty@donna.mysql.fi <> | 2001-02-21 14:16:00 +0200 |
commit | 1c298277f9ff4aa38b847c3de083e0d54e27a247 (patch) | |
tree | 34f7d174c7e612bd03a5cf88fe4e2ac2411a33a4 /mysql-test | |
parent | f45764791b6bc6de8740ca160de94f4f3f2ab1c4 (diff) | |
download | mariadb-git-1c298277f9ff4aa38b847c3de083e0d54e27a247.tar.gz |
Fixes for innobase
Added test for ALTER TABLE ORDER BY
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/t/alter_table.test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test index 41151ac5f16..abeca8a32ba 100644 --- a/mysql-test/t/alter_table.test +++ b/mysql-test/t/alter_table.test @@ -46,3 +46,24 @@ insert into t1 values(9),(3),(12),(10); alter table t1 order by n; select * from t1; drop table t1; + +CREATE TABLE t1 ( + id int(11) unsigned NOT NULL default '0', + category_id tinyint(4) unsigned NOT NULL default '0', + type_id tinyint(4) unsigned NOT NULL default '0', + body text NOT NULL, + user_id int(11) unsigned NOT NULL default '0', + status enum('new','old') NOT NULL default 'new', + PRIMARY KEY (id) +) TYPE=MyISAM; + +ALTER TABLE +t1 +ORDER BY +t1.id, +t1.status, +t1.type_id, +t1.user_id, +t1.body; + +drop table t1; |