~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/varchar.inc

  • Committer: Jay Pipes
  • Date: 2009-09-15 21:01:42 UTC
  • mto: (1126.2.5 merge)
  • mto: This revision was merged to the branch mainline in revision 1128.
  • Revision ID: jpipes@serialcoder-20090915210142-x8mwiqn1q0vzjspp
Moves Alter_info out into its own header and source file, cleans up some related include mess in sql_lex.h, and renames Alter_info to AlterInfo.

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 ER_DATA_TOO_LONG
18
 
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
19
 
set @a=repeat(' ',10);
20
 
--error ER_DATA_TOO_LONG
21
 
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
22
 
set @a=repeat(' ',9);
23
17
insert into t1 values (concat('+',@a),concat('+',@a),concat('+',@a));
24
18
select concat('*',v,'*',c,'*',t,'*') from t1;
25
19
 
195
189
insert into t1 values ('a '),('a  '),('a   '),('a         ');
196
190
--error ER_DUP_ENTRY
197
191
insert into t1 values ('a     ');
198
 
--error ER_DATA_TOO_LONG
 
192
--error ER_DUP_ENTRY
199
193
insert into t1 values ('a          ');
200
194
--error ER_DUP_ENTRY
201
195
insert into t1 values ('a ');
220
214
show create table t1;
221
215
drop table t1;
222
216
 
223
 
eval create $temp table t1 (v varchar(10), c char(10));
 
217
eval create $temp table t1 (v varchar(10), c char(10)) row_format=fixed;
224
218
show create table t1;
225
219
insert into t1 values('a','a'),('a ','a ');
226
220
select concat('*',v,'*',c,'*') from t1;