~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/join.test

  • Committer: Brian Aker
  • Date: 2009-07-12 00:49:18 UTC
  • mfrom: (1063.9.51 brian-tmp-fix)
  • Revision ID: brian@gaz-20090712004918-chprmyj387ex6l8a
Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
# no matches, still three matches were found.
127
127
#
128
128
 
129
 
CREATE TABLE t1 (
 
129
CREATE TEMPORARY TABLE t1 (
130
130
  a int NOT NULL,
131
131
  b int NOT NULL,
132
132
  PRIMARY KEY  (a,b)
134
134
 
135
135
INSERT INTO t1 VALUES (1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(2,3);
136
136
 
137
 
CREATE TABLE t2 (
 
137
CREATE TEMPORARY TABLE t2 (
138
138
  a int default NULL
139
139
) ENGINE=MyISAM;
140
140
INSERT INTO t2 VALUES (2),(3);
231
231
# Bug when doing full join and NULL fields.
232
232
#
233
233
 
234
 
CREATE TABLE t1 (
 
234
CREATE TEMPORARY TABLE t1 (
235
235
  t1_id int default NULL,
236
236
  t2_id int default NULL,
237
237
  type enum('Cost','Percent') default NULL,
242
242
  item_id int default NULL
243
243
) ENGINE=MyISAM;
244
244
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);
245
 
CREATE TABLE t2 (
 
245
CREATE TEMPORARY TABLE t2 (
246
246
  id int NOT NULL auto_increment,
247
247
  name varchar(255) default NULL,
248
248
  PRIMARY KEY  (id)
255
255
# Bug in range optimiser with MAYBE_KEY
256
256
#
257
257
 
258
 
CREATE TABLE t1 (
 
258
CREATE TEMPORARY TABLE t1 (
259
259
  siteid varchar(25) NOT NULL default '',
260
260
  emp_id varchar(30) NOT NULL default '',
261
261
  rate_code varchar(10) default NULL,
263
263
  KEY siteid (siteid)
264
264
) ENGINE=MyISAM;
265
265
INSERT INTO t1 VALUES ('rivercats','psmith','cust'), ('rivercats','KWalker','cust');
266
 
CREATE TABLE t2 (
 
266
CREATE TEMPORARY TABLE t2 (
267
267
  siteid varchar(25) NOT NULL default '',
268
268
  rate_code varchar(10) NOT NULL default '',
269
269
  base_rate float NOT NULL default '0',