~ubuntu-branches/debian/squeeze/mysql-5.1/squeeze

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Moritz Muehlenhoff
  • Date: 2014-01-14 10:40:30 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140114104030-44alii0hx3x3g41y
Tags: 5.1.73-1
* New upstream release
  http://dev.mysql.com/doc/relnotes/mysql/5.1/en/news-5-1-73.html
* Update patches
* Disable flaky test rpl.rpl_innodb_bug28430 breaking the build. It's  marked
  as experimental by upstream and the internet is full of reports about it's
  unrelialibity

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
#