~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/varchar.inc

  • Committer: Stewart Smith
  • Date: 2011-03-29 01:30:47 UTC
  • mto: (2257.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: stewart@flamingspork.com-20110329013047-5ujzfx6pahmwuko2
have CachedDirectory print out a warning if we can't stat() something in a directory. We should always have access to at least stat() things in directories Drizzle is running in (otherwise there is likely a problem)

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
eval create $temp table t1 (v varchar(10), c char(10), t text);
15
15
insert into t1 values('+ ', '+ ', '+ ');
16
16
set @a=repeat(' ',20);
17
 
--error 1406
 
17
--error ER_DATA_TOO_LONG
18
18
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
19
19
set @a=repeat(' ',10);
20
 
--error 1406
 
20
--error ER_DATA_TOO_LONG
21
21
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
22
22
set @a=repeat(' ',9);
23
23
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
195
195
insert into t1 values ('a '),('a  '),('a   '),('a         ');
196
196
--error ER_DUP_ENTRY
197
197
insert into t1 values ('a     ');
198
 
--error 1406
 
198
--error ER_DATA_TOO_LONG
199
199
insert into t1 values ('a          ');
200
200
--error ER_DUP_ENTRY
201
201
insert into t1 values ('a ');