~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/join.result

  • Committer: Monty Taylor
  • Date: 2008-07-22 05:48:51 UTC
  • mto: (202.1.3 toru)
  • mto: This revision was merged to the branch mainline in revision 204.
  • Revision ID: monty@inaugust.com-20080722054851-airxt73370725p7x
Re-enabled optimizations for the normal build, and added back the --with-debug option to turn them off. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
1       SIMPLE  NULL    NULL    NULL    NULL    NULL    NULL    NULL    Impossible WHERE noticed after reading const tables
70
70
drop table t1,t2;
71
71
CREATE TABLE t1 (
72
 
id int NOT NULL auto_increment,
 
72
id int(11) NOT NULL auto_increment,
73
73
token varchar(100) DEFAULT '' NOT NULL,
74
 
count int DEFAULT '0' NOT NULL,
75
 
qty int,
 
74
count int(11) DEFAULT '0' NOT NULL,
 
75
qty int(11),
76
76
phone char(1) DEFAULT '' NOT NULL,
77
77
timestamp datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
78
78
PRIMARY KEY (id),
92
92
INSERT INTO t1 VALUES (28,'a71250b7ed780f6ef3185bfffe027983',3,5400,'y','1999-12-27 09:44:36');
93
93
INSERT INTO t1 VALUES (29,'a71250b7ed780f6ef3185bfffe027983',4,17700,'b','1999-12-27 09:45:05');
94
94
CREATE TABLE t2 (
95
 
id int NOT NULL auto_increment,
96
 
category int DEFAULT '0' NOT NULL,
97
 
county int DEFAULT '0' NOT NULL,
98
 
state int DEFAULT '0' NOT NULL,
99
 
phones int DEFAULT '0' NOT NULL,
100
 
nophones int DEFAULT '0' NOT NULL,
 
95
id int(11) NOT NULL auto_increment,
 
96
category int(11) DEFAULT '0' NOT NULL,
 
97
county int(11) DEFAULT '0' NOT NULL,
 
98
state int(11) DEFAULT '0' NOT NULL,
 
99
phones int(11) DEFAULT '0' NOT NULL,
 
100
nophones int(11) DEFAULT '0' NOT NULL,
101
101
PRIMARY KEY (id),
102
102
KEY category (category,county,state)
103
103
);
135
135
ERROR HY000: Too many tables; MySQL can only use XX tables in a join
136
136
drop table t1;
137
137
CREATE TABLE t1 (
138
 
a int NOT NULL,
139
 
b int NOT NULL,
 
138
a int(11) NOT NULL,
 
139
b int(11) NOT NULL,
140
140
PRIMARY KEY  (a,b)
141
141
) ENGINE=MyISAM;
142
142
INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(2,3);
143
143
CREATE TABLE t2 (
144
 
a int default NULL
 
144
a int(11) default NULL
145
145
) ENGINE=MyISAM;
146
146
INSERT INTO t2 VALUES (2),(3);
147
147
SELECT t1.a,t2.a,b FROM t1,t2 WHERE t1.a=t2.a AND (t1.a=1 OR t1.a=2) AND b>=1 AND b<=3;
165
165
d
166
166
2001-08-01
167
167
0000-00-00
168
 
Warnings:
169
 
Error   1365    Division by 0
170
 
Error   1365    Division by 0
171
 
Error   1365    Division by 0
172
168
DROP TABLE t1,t2;
173
169
CREATE TABLE t1 (
174
170
Document_ID varchar(50) NOT NULL default '',
186
182
Language_ID char(3) NOT NULL default '',
187
183
Document_ID char(50) NOT NULL default '',
188
184
CanRead char(1) default NULL,
189
 
Customer_ID int NOT NULL default '0',
 
185
Customer_ID int(11) NOT NULL default '0',
190
186
PRIMARY KEY  (Contractor_ID,Language_ID,Document_ID,Customer_ID)
191
187
);
192
188
INSERT INTO t2 VALUES ('5','ger','xep80','1',999999),('1','ger','xep80','1',999999);
241
237
1
242
238
drop table t1,t2,t3;
243
239
CREATE TABLE t1 (
244
 
t1_id int default NULL,
245
 
t2_id int default NULL,
 
240
t1_id int(11) default NULL,
 
241
t2_id int(11) default NULL,
246
242
type enum('Cost','Percent') default NULL,
247
243
cost_unit enum('Cost','Unit') default NULL,
248
244
min_value double default NULL,
249
245
max_value double default NULL,
250
 
t3_id int default NULL,
251
 
item_id int default NULL
 
246
t3_id int(11) default NULL,
 
247
item_id int(11) default NULL
252
248
) ENGINE=MyISAM;
253
249
INSERT INTO t1 VALUES (12,5,'Percent','Cost',-1,0,-1,-1),(14,4,'Percent','Cost',-1,0,-1,-1),(18,5,'Percent','Cost',-1,0,-1,-1),(19,4,'Percent','Cost',-1,0,-1,-1),(20,5,'Percent','Cost',100,-1,22,291),(21,5,'Percent','Cost',100,-1,18,291),(22,1,'Percent','Cost',100,-1,6,291),(23,1,'Percent','Cost',100,-1,21,291),(24,1,'Percent','Cost',100,-1,9,291),(25,1,'Percent','Cost',100,-1,4,291),(26,1,'Percent','Cost',100,-1,20,291),(27,4,'Percent','Cost',100,-1,7,202),(28,1,'Percent','Cost',50,-1,-1,137),(29,2,'Percent','Cost',100,-1,4,354),(30,2,'Percent','Cost',100,-1,9,137),(93,2,'Cost','Cost',-1,10000000,-1,-1);
254
250
CREATE TABLE t2 (
255
 
id int NOT NULL auto_increment,
 
251
id int(10) unsigned NOT NULL auto_increment,
256
252
name varchar(255) default NULL,
257
253
PRIMARY KEY  (id)
258
254
) ENGINE=MyISAM;