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 '',
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 ) ,
419
419
drop table t1,t2;
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);
438
# Bug #11185 incorrect comparison of unsigned int to signed constant
438
# Bug #11185 incorrect comparison of int to signed constant
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;
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));
982
982
INSERT INTO t1 VALUES (127),(254),(0),(1),(255);