~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/heap.test

  • Committer: Andrew Hutchings
  • Date: 2010-09-08 19:03:09 UTC
  • mfrom: (1750 staging)
  • mto: (1750.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1751.
  • Revision ID: andrew@linuxjedi.co.uk-20100908190309-mya1nu7xvo1fpvk8
Merge trunk into branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
create temporary table t1 (v varchar(10), c char(10), t varchar(50));
216
216
insert into t1 values('+ ', '+ ', '+ ');
217
217
set @a=repeat(' ',20);
218
 
--error 1406
 
218
--error ER_DATA_TOO_LONG
219
219
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
220
220
set @a=repeat(' ',10);
221
 
--error 1406
 
221
--error ER_DATA_TOO_LONG
222
222
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
223
223
set @a=repeat(' ',9);
224
224
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
315
315
insert into t1 values ('a '),('a  '),('a   '),('a         ');
316
316
--error ER_DUP_ENTRY
317
317
insert into t1 values ('a     ');
318
 
--error 1406
 
318
--error ER_DATA_TOO_LONG
319
319
insert into t1 values ('a          ');
320
320
--error ER_DUP_ENTRY
321
321
insert into t1 values ('a ');
393
393
insert into t1 values ('a '),('a  '),('a   '),('a         ');
394
394
--error ER_DUP_ENTRY
395
395
insert into t1 values ('a     ');
396
 
--error 1406
 
396
--error ER_DATA_TOO_LONG
397
397
insert into t1 values ('a          ');
398
398
--error ER_DUP_ENTRY
399
399
insert into t1 values ('a ');
436
436
select * from t1;
437
437
drop table t1;
438
438
 
439
 
--error 1075
 
439
--error ER_WRONG_AUTO_KEY
440
440
create temporary table t1 (a int not null, b int not null auto_increment,
441
441
  primary key(a, b)) engine=MEMORY;
442
442