41
PAPER_ID int(6) DEFAULT '0' NOT NULL,
42
YEAR int(6) DEFAULT '0' NOT NULL,
43
ISSUE int(6) DEFAULT '0' NOT NULL,
44
CLOSED int(4) DEFAULT '0' NOT NULL,
41
PAPER_ID smallint(6) DEFAULT '0' NOT NULL,
42
YEAR smallint(6) DEFAULT '0' NOT NULL,
43
ISSUE smallint(6) DEFAULT '0' NOT NULL,
44
CLOSED tinyint(4) DEFAULT '0' NOT NULL,
45
45
ISS_DATE date DEFAULT '0000-00-00' NOT NULL,
46
46
PRIMARY KEY (PAPER_ID,YEAR,ISSUE)
69
69
id int(11) NOT NULL auto_increment,
70
70
parent_id int(11) DEFAULT '0' NOT NULL,
71
level int(4) DEFAULT '0' NOT NULL,
71
level tinyint(4) DEFAULT '0' NOT NULL,
73
73
KEY parent_id (parent_id),
119
119
CREATE TABLE t1 (
120
t1ID int(10) NOT NULL auto_increment,
120
t1ID int(10) unsigned 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 '',
264
264
CREATE TABLE t1 (
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',
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 smallint( 6 ) unsigned NOT NULL default '1',
271
tableid int( 1 ) unsigned NOT NULL default '1',
272
content int( 5 ) unsigned NOT NULL default '188',
273
273
PRIMARY KEY ( owner, id ) ,
274
274
KEY menu( owner, showid, columnid ) ,
275
275
KEY `COLUMN` ( owner, columnid, line ) ,
419
419
drop table t1,t2;
421
421
--disable_warnings
422
create table t1 (x bigint not null primary key) engine=innodb;
422
create table t1 (x bigint unsigned 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);
438
# Bug #11185 incorrect comparison of int to signed constant
438
# Bug #11185 incorrect comparison of unsigned int to signed constant
440
create table t1 (a bigint);
440
create table t1 (a bigint unsigned);
441
441
create index t1i on t1(a);
442
442
insert into t1 select 18446744073709551615;
443
443
insert into t1 select 18446744073709551614;
979
979
# test UNSIGNED. only occurs when indexed.
980
CREATE TABLE t1 (f1 int(11) NOT NULL, PRIMARY KEY (f1));
980
CREATE TABLE t1 (f1 TINYINT(11) UNSIGNED NOT NULL, PRIMARY KEY (f1));
982
982
INSERT INTO t1 VALUES (127),(254),(0),(1),(255);
1000
1000
# test signed. only occurs when index.
1001
CREATE TABLE t1 ( f1 int(11) NOT NULL, PRIMARY KEY (f1));
1001
CREATE TABLE t1 ( f1 TINYINT(11) NOT NULL, PRIMARY KEY (f1));
1003
1003
INSERT INTO t1 VALUES (127),(126),(0),(-128),(-127);