~stewart/drizzle/remove-unused-row-type-in-table-message

« back to all changes in this revision

Viewing changes to tests/r/innodb.result

  • Committer: Brian Aker
  • Date: 2010-06-22 19:48:34 UTC
  • Revision ID: brian@gaz-20100622194834-xrx8ujqxj22m60kq
Merge in changes to call error on bad data input.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1496
1496
insert into t1 values('+ ', '+ ', '+ ');
1497
1497
set @a=repeat(' ',20);
1498
1498
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
1499
 
Warnings:
1500
 
Note    1265    Data truncated for column 'v' at row 1
1501
 
Note    1265    Data truncated for column 'c' at row 1
 
1499
ERROR 22001: Data too long for column 'v' at row 1
 
1500
set @a=repeat(' ',10);
 
1501
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
 
1502
ERROR 22001: Data too long for column 'v' at row 1
 
1503
set @a=repeat(' ',9);
 
1504
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
1502
1505
select concat('*',v,'*',c,'*',t,'*') from t1;
1503
1506
concat('*',v,'*',c,'*',t,'*')
1504
1507
*+ *+ *+ *
1505
 
*+         *+         *+                    *
 
1508
*+         *+         *+         *
1506
1509
show create table t1;
1507
1510
Table   Create Table
1508
1511
t1      CREATE TABLE `t1` (
1543
1546
  `t` text
1544
1547
) ENGINE=InnoDB
1545
1548
alter table t1 modify t varchar(10);
1546
 
Warnings:
1547
 
Note    1265    Data truncated for column 't' at row 2
1548
1549
show create table t1;
1549
1550
Table   Create Table
1550
1551
t1      CREATE TABLE `t1` (
1998
1999
insert into t1 values ('a     ');
1999
2000
ERROR 23000: Duplicate entry 'a     ' for key 'a'
2000
2001
insert into t1 values ('a          ');
2001
 
ERROR 23000: Duplicate entry 'a         ' for key 'a'
 
2002
ERROR 22001: Data too long for column 'a' at row 1
2002
2003
insert into t1 values ('a ');
2003
2004
ERROR 23000: Duplicate entry 'a ' for key 'a'
2004
2005
update t1 set a='a  ' where a like 'a%';