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

« back to all changes in this revision

Viewing changes to tests/r/heap.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:
252
252
insert into t1 values('+ ', '+ ', '+ ');
253
253
set @a=repeat(' ',20);
254
254
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
255
 
Warnings:
256
 
Note    1265    Data truncated for column 'v' at row 1
257
 
Note    1265    Data truncated for column 'c' at row 1
 
255
ERROR 22001: Data too long for column 'v' at row 1
 
256
set @a=repeat(' ',10);
 
257
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
 
258
ERROR 22001: Data too long for column 'v' at row 1
 
259
set @a=repeat(' ',9);
 
260
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
258
261
select concat('*',v,'*',c,'*',t,'*') from t1;
259
262
concat('*',v,'*',c,'*',t,'*')
260
263
*+ *+ *+ *
261
 
*+         *+         *+                    *
 
264
*+         *+         *+         *
262
265
show create table t1;
263
266
Table   Create Table
264
267
t1      CREATE TEMPORARY TABLE `t1` (
309
312
select concat('*',v,'*',c,'*',t,'*') from t1;
310
313
concat('*',v,'*',c,'*',t,'*')
311
314
*+ *+ *+ *
312
 
*+         *+         *+                    *
 
315
*+         *+         *+         *
313
316
drop table t1,t2,t3;
314
317
create temporary table t1 (v varchar(10), c char(10), t varchar(50), key(v), key(c), key(t(10)));
315
318
show create table t1;
528
531
insert into t1 values ('a     ');
529
532
ERROR 23000: Duplicate entry 'a     ' for key 'a'
530
533
insert into t1 values ('a          ');
531
 
ERROR 23000: Duplicate entry 'a         ' for key 'a'
 
534
ERROR 22001: Data too long for column 'a' at row 1
532
535
insert into t1 values ('a ');
533
536
ERROR 23000: Duplicate entry 'a ' for key 'a'
534
537
update t1 set a='a      ' where a like 'a ';
619
622
insert into t1 values ('a     ');
620
623
ERROR 23000: Duplicate entry 'a     ' for key 'a'
621
624
insert into t1 values ('a          ');
622
 
ERROR 23000: Duplicate entry 'a         ' for key 'a'
 
625
ERROR 22001: Data too long for column 'a' at row 1
623
626
insert into t1 values ('a ');
624
627
ERROR 23000: Duplicate entry 'a ' for key 'a'
625
628
update t1 set a='a      ' where a like 'a ';