~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_in.test

  • Committer: Lee Bieber
  • Date: 2010-08-21 22:42:44 UTC
  • mto: (1727.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1728.
  • Revision ID: lbieber@kalebral-2.local-20100821224244-kh3gmsvi45dlbuu1
For the feature request (https://blueprints.launchpad.net/drizzle/+spec/limit-maximum-sort-size) 
that is requesting the ability to cap various buffers, we first tried setting the join buffer to 
1 to see how that would affect the test results and expose test results that need to 
sorted (by adding --sorted_result). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
INSERT INTO t4 VALUES (1,1),(2,2),(1000,1000),(1001,1001),(1002,1002),
263
263
       (1003,1003),(1004,1004);
264
264
 
 
265
--sorted_result
265
266
EXPLAIN SELECT STRAIGHT_JOIN * FROM t3 
266
267
  JOIN t1 ON t3.a=t1.a 
267
268
  JOIN t2 ON t3.a=t2.a
272
273
  JOIN t2 ON t3.a=t2.a
273
274
  JOIN t4 WHERE t4.a IN (t1.b, t2.b);
274
275
 
 
276
--sorted_result
275
277
EXPLAIN SELECT STRAIGHT_JOIN 
276
278
   (SELECT SUM(t4.a) FROM t4 WHERE t4.a IN (t1.b, t2.b)) 
277
279
  FROM t3, t1, t2