~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/range.test

Put errmsg.c in sql-common since it can be built only once and used twice.
Put client.c and net_serv.c in libmysql so that we can only have one
link_sources section. 
Got rid of just about all copying and other weirdness, other than some stuff
in client and client.c/net_serv.c, which need to be reworked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
drop table t1;
39
39
 
40
40
CREATE TABLE t1 (
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)
47
47
);
68
68
CREATE TABLE t1 (
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,
72
72
  PRIMARY KEY (id),
73
73
  KEY parent_id (parent_id),
74
74
  KEY level (level)
117
117
#
118
118
 
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 '',
262
262
#
263
263
 
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 ) ,
392
392
 
393
393
# Fix for bug#4488 
394
394
#
395
 
create table t1 (x bigint not null);
 
395
create table t1 (x bigint unsigned 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 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);
435
435
drop table t1;
436
436
 
437
437
#
438
 
# Bug #11185 incorrect comparison of int to signed constant
 
438
# Bug #11185 incorrect comparison of unsigned int to signed constant
439
439
#
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;
977
977
#
978
978
 
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));
981
981
 
982
982
INSERT INTO t1 VALUES (127),(254),(0),(1),(255);
983
983
 
998
998
 
999
999
 
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));
1002
1002
 
1003
1003
INSERT INTO t1 VALUES (127),(126),(0),(-128),(-127);
1004
1004