~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/strict.test

  • Committer: Brian Aker
  • Date: 2008-10-02 19:18:43 UTC
  • mto: (438.4.1 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 435.
  • Revision ID: brian@tangent.org-20081002191843-tw3nnufik8qwf9rz
Removed UNSIGNED from parser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
994
994
--error 1292
995
995
insert into t1 (col2) values (10E+0 + 'a');
996
996
--error 1292
997
 
insert into t1 (col2) values (cast('10a' as unsigned integer));
998
 
insert into t1 (col2) values (cast('10' as unsigned integer));
 
997
insert into t1 (col2) values (cast('10a' as integer));
 
998
insert into t1 (col2) values (cast('10' as integer));
999
999
insert into t1 (col2) values (cast('10' as signed integer));
1000
1000
insert into t1 (col2) values (10E+0 + '0 ');
1001
1001
select * from t1;
1105
1105
 
1106
1106
set @@sql_mode='traditional';
1107
1107
create table t1(a int, b date not null);                                       
1108
 
alter table t1 modify a bigint unsigned not null;
 
1108
alter table t1 modify a bigint not null;
1109
1109
show create table t1;
1110
1110
drop table t1;
1111
1111
 
1169
1169
# Bug #26359: Strings becoming truncated and converted to numbers under STRICT mode
1170
1170
#
1171
1171
set sql_mode= 'traditional';
1172
 
create table t1(col1 int, col2 int unsigned, 
1173
 
  col3 int, col4 int unsigned,
1174
 
  col5 mediumint, col6 mediumint unsigned,
1175
 
  col7 int, col8 int unsigned,
1176
 
  col9 bigint, col10 bigint unsigned);
 
1172
create table t1(col1 int, col2 int, 
 
1173
  col3 int, col4 int,
 
1174
  col5 mediumint, col6 mediumint,
 
1175
  col7 int, col8 int,
 
1176
  col9 bigint, col10 bigint);
1177
1177
--error 1366
1178
1178
insert into t1(col1) values('-');
1179
1179
--error 1366