~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/range.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:
117
117
#
118
118
 
119
119
CREATE TABLE t1 (
120
 
  t1ID int(10) unsigned NOT NULL auto_increment,
 
120
  t1ID int(10) NOT NULL auto_increment,
121
121
  art binary(1) NOT NULL default '',
122
122
  KNR char(5) NOT NULL default '',
123
123
  RECHNR char(6) NOT NULL default '',
262
262
#
263
263
 
264
264
CREATE TABLE t1 (
265
 
id int( 11 ) unsigned NOT NULL AUTO_INCREMENT ,
266
 
line int( 5 ) unsigned NOT NULL default '0',
267
 
columnid int( 3 ) unsigned NOT NULL default '0',
268
 
owner int( 3 ) unsigned NOT NULL default '0',
269
 
ordinal int( 3 ) unsigned NOT NULL default '0',
270
 
showid int( 6 ) unsigned NOT NULL default '1',
271
 
tableid int( 1 ) unsigned NOT NULL default '1',
272
 
content int( 5 ) unsigned NOT NULL default '188',
 
265
id int( 11 ) NOT NULL AUTO_INCREMENT ,
 
266
line int( 5 ) NOT NULL default '0',
 
267
columnid int( 3 ) NOT NULL default '0',
 
268
owner int( 3 ) NOT NULL default '0',
 
269
ordinal int( 3 ) NOT NULL default '0',
 
270
showid int( 6 ) NOT NULL default '1',
 
271
tableid int( 1 ) NOT NULL default '1',
 
272
content int( 5 ) NOT NULL default '188',
273
273
PRIMARY KEY ( owner, id ) ,
274
274
KEY menu( owner, showid, columnid ) ,
275
275
KEY `COLUMN` ( owner, columnid, line ) ,
392
392
 
393
393
# Fix for bug#4488 
394
394
#
395
 
create table t1 (x bigint unsigned not null);
 
395
create table t1 (x bigint not null);
396
396
insert into t1(x) values (0xfffffffffffffff0);
397
397
insert into t1(x) values (0xfffffffffffffff1);
398
398
select * from t1;
419
419
drop table t1,t2;
420
420
 
421
421
--disable_warnings
422
 
create table t1 (x bigint unsigned not null primary key) engine=innodb;
 
422
create table t1 (x bigint not null primary key) engine=innodb;
423
423
--enable_warnings
424
424
insert into t1(x) values (0xfffffffffffffff0);
425
425
insert into t1(x) values (0xfffffffffffffff1);
435
435
drop table t1;
436
436
 
437
437
#
438
 
# Bug #11185 incorrect comparison of unsigned int to signed constant
 
438
# Bug #11185 incorrect comparison of int to signed constant
439
439
#
440
 
create table t1 (a bigint unsigned);
 
440
create table t1 (a bigint);
441
441
create index t1i on t1(a);
442
442
insert into t1 select 18446744073709551615;
443
443
insert into t1 select 18446744073709551614;
977
977
#
978
978
 
979
979
# test UNSIGNED. only occurs when indexed.
980
 
CREATE TABLE t1 (f1 int(11) UNSIGNED NOT NULL, PRIMARY KEY (f1));
 
980
CREATE TABLE t1 (f1 int(11) NOT NULL, PRIMARY KEY (f1));
981
981
 
982
982
INSERT INTO t1 VALUES (127),(254),(0),(1),(255);
983
983