~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/type_ranges.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:
8
8
SET SQL_WARNINGS=1;
9
9
 
10
10
CREATE TABLE t1 (
11
 
  auto int(5) unsigned NOT NULL auto_increment,
 
11
  auto int(5) NOT NULL auto_increment,
12
12
  string char(10) default "hello",
13
13
  tiny int(4) DEFAULT '0' NOT NULL ,
14
14
  short int(6) DEFAULT '1' NOT NULL ,
17
17
  longlong bigint(13) DEFAULT '0' NOT NULL,
18
18
  real_float float(13,1) DEFAULT 0.0 NOT NULL,
19
19
  real_double double(16,4),
20
 
  utiny int(3) unsigned DEFAULT '0' NOT NULL,
21
 
  ushort int(5) unsigned zerofill DEFAULT '00000' NOT NULL,
22
 
  umedium mediumint(8) unsigned DEFAULT '0' NOT NULL,
23
 
  ulong int(11) unsigned DEFAULT '0' NOT NULL,
24
 
  ulonglong bigint(13) unsigned DEFAULT '0' NOT NULL,
 
20
  utiny int(3) DEFAULT '0' NOT NULL,
 
21
  ushort int(5) zerofill DEFAULT '00000' NOT NULL,
 
22
  umedium mediumint(8) DEFAULT '0' NOT NULL,
 
23
  ulong int(11) DEFAULT '0' NOT NULL,
 
24
  ulonglong bigint(13) DEFAULT '0' NOT NULL,
25
25
  time_stamp timestamp,
26
26
  date_field date,      
27
27
  time_field time,      
96
96
# check with old syntax
97
97
#
98
98
CREATE TABLE t2 (
99
 
  auto int(5) unsigned NOT NULL auto_increment,
 
99
  auto int(5) NOT NULL auto_increment,
100
100
  string char(20),
101
101
  mediumblob_col mediumblob not null,
102
102
  new_field char(2),
153
153
create table t1 ( myfield INT NOT NULL, UNIQUE INDEX (myfield), unique (myfield), index(myfield));
154
154
drop table t1;
155
155
 
156
 
create table t1 ( id integer unsigned not null primary key );
157
 
create table t2 ( id integer unsigned not null primary key );
 
156
create table t1 ( id integer not null primary key );
 
157
create table t2 ( id integer not null primary key );
158
158
insert into t1 values (1), (2);
159
159
insert into t2 values (1);
160
160
select  t1.id as id_A,  t2.id as id_B from t1 left join t2 using ( id ); 
161
161
select  t1.id as id_A,  t2.id as id_B from t1 left join t2 on (t1.id = t2.id); 
162
 
create table t3 (id_A integer unsigned not null, id_B integer unsigned null  );
 
162
create table t3 (id_A integer not null, id_B integer null  );
163
163
insert into t3 select t1.id as id_A,  t2.id as id_B from t1 left join t2 using ( id );
164
164
select * from t3;
165
165
truncate table t3;