~dshrews/drizzle/bug600795

« back to all changes in this revision

Viewing changes to tests/t/type_ranges.test

  • Committer: David Shrewsbury
  • Date: 2010-08-28 01:11:17 UTC
  • mfrom: (1719.1.15 trunk)
  • Revision ID: shrewsbury.dave@gmail.com-20100828011117-vey8js8m1tv9zke0
Merge from trunk, resolve conflict with transaction_services.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
insert into t1 values (10, 1,1,1,1,1,1,1,1,1,1,1,1,1,NULL,NULL,NULL,1,1,1,1,'one','one');
59
59
insert into t1 values (NULL,2,2,2,2,2,2,2,2,2,2,2,2,2,NULL,NULL,NULL,NULL,NULL,2,2,'two','one');
60
 
--error 1406
 
60
--error ER_DATA_TOO_LONG
61
61
insert into t1 values (0,1/3,3,3,3,3,3,3,3,3,3,3,3,3,NULL,'19970303','19970303101010','','','','3',3,3);
62
 
--error 1691 # Bad enum
 
62
--error ER_INVALID_ENUM_VALUE # Bad enum
63
63
insert into t1 values (0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,NULL,19970807,19970403090807,-1,-1,-1,'-1',-1,-1);
64
 
--error 1406
 
64
--error ER_DATA_TOO_LONG
65
65
insert into t1 values (0,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,-4294967295,NULL,0,0,-4294967295,-4294967295,-4294967295,'-4294967295',0,"tree");
66
 
--error 1264
 
66
--error ER_WARN_DATA_OUT_OF_RANGE
67
67
insert into t1 values (0,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,4294967295,NULL,0,0,4294967295,4294967295,4294967295,'4294967295',0,0);
68
68
insert into t1 (tiny) values (1);
69
69
 
120
120
create table t1 (c int);
121
121
insert into t1 values(1),(2);
122
122
create table t2 select * from t1;
123
 
--error 1060
 
123
--error ER_DUP_FIELDNAME
124
124
create table t3 select * from t1, t2; # Should give an error
125
125
create table t3 select t1.c AS c1, t2.c AS c2,1 as "const" from t1, t2;
126
126
# We mask out the Privileges column because it differs with embedded server