summaryrefslogtreecommitdiff
path: root/mysql-test/t/csv.test
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2010-03-04 11:09:09 +0100
committerBjorn Munch <Bjorn.Munch@sun.com>2010-03-04 11:09:09 +0100
commit27326d2c11d5557ac9f0472ae0522e5ed510069a (patch)
tree12e0f6341e320d2670ff5686ca119307462d0077 /mysql-test/t/csv.test
parent1a6a540286e4a35e647a6802449d0e10baf2d90f (diff)
downloadmariadb-git-27326d2c11d5557ac9f0472ae0522e5ed510069a.tar.gz
Bug #45482 MTR2: --default-storage-engine=csv is rejected by mtr
Added csv to list of builtin engines Fixed dysfunctional part of csv.test so it actuallu used csv
Diffstat (limited to 'mysql-test/t/csv.test')
-rw-r--r--mysql-test/t/csv.test15
1 files changed, 7 insertions, 8 deletions
diff --git a/mysql-test/t/csv.test b/mysql-test/t/csv.test
index cdf274190dd..cf6d5b6d4c1 100644
--- a/mysql-test/t/csv.test
+++ b/mysql-test/t/csv.test
@@ -1553,26 +1553,25 @@ drop table t1;
# whole alter table code is being tested all around the test suite already.
#
-create table t1 (v varchar(32) not null);
+create table t1 (v varchar(32) not null) engine=csv;
insert into t1 values ('def'),('abc'),('hij'),('3r4f');
select * from t1;
# Fast alter, no copy performed
-alter table t1 change v v2 varchar(32);
+alter table t1 change v v2 varchar(32) not null;
select * from t1;
# Fast alter, no copy performed
-alter table t1 change v2 v varchar(64);
+alter table t1 change v2 v varchar(64) not null;
select * from t1;
update t1 set v = 'lmn' where v = 'hij';
select * from t1;
# Regular alter table
-alter table t1 add i int auto_increment not null primary key first;
+alter table t1 add i int not null first;
select * from t1;
-update t1 set i=5 where i=3;
+update t1 set i=3 where v = 'abc';
select * from t1;
-alter table t1 change i i bigint;
+alter table t1 change i i bigint not null;
select * from t1;
-alter table t1 add unique key (i, v);
-select * from t1 where i between 2 and 4 and v in ('def','3r4f','lmn');
+select * from t1 where i between 2 and 4 and v in ('def','3r4f','abc');
drop table t1;
#