~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/t/csv.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1553
1553
# whole alter table code is being tested all around the test suite already.
1554
1554
#
1555
1555
 
1556
 
create table t1 (v varchar(32) not null);
 
1556
create table t1 (v varchar(32) not null) engine=csv;
1557
1557
insert into t1 values ('def'),('abc'),('hij'),('3r4f');
1558
1558
select * from t1;
1559
1559
# Fast alter, no copy performed
1560
 
alter table t1 change v v2 varchar(32);
 
1560
alter table t1 change v v2 varchar(32) not null;
1561
1561
select * from t1;
1562
1562
# Fast alter, no copy performed
1563
 
alter table t1 change v2 v varchar(64);
 
1563
alter table t1 change v2 v varchar(64) not null;
1564
1564
select * from t1;
1565
1565
update t1 set v = 'lmn' where v = 'hij';
1566
1566
select * from t1;
1567
1567
# Regular alter table
1568
 
alter table t1 add i int auto_increment not null primary key first;
1569
 
select * from t1;
1570
 
update t1 set i=5 where i=3;
1571
 
select * from t1;
1572
 
alter table t1 change i i bigint;
1573
 
select * from t1;
1574
 
alter table t1 add unique key (i, v);
1575
 
select * from t1 where i between 2 and 4 and v in ('def','3r4f','lmn');
 
1568
alter table t1 add i int not null first;
 
1569
select * from t1;
 
1570
update t1 set i=3 where v = 'abc';
 
1571
select * from t1;
 
1572
alter table t1 change i i bigint not null;
 
1573
select * from t1;
 
1574
select * from t1 where i between 2 and 4 and v in ('def','3r4f','abc');
1576
1575
drop table t1;
1577
1576
 
1578
1577
#