From: Date: April 10 2007 6:04pm Subject: bk commit into 5.0 tree (gkodinov:1.2435) BUG#18940 List-Archive: http://lists.mysql.com/commits/24188 X-Bug: 18940 Message-Id: <200704101604.l3AG4kQj008332@magare.gmz> Below is the list of changes that have just been committed into a local 5.0 repository of kgeorge. When kgeorge does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet@stripped, 2007-04-10 19:04:41+03:00, gkodinov@stripped +2 -0 Bug #18940: Added a test case. The problem was fixed by the fix for bug #17379. The problem was that because of some conditions the optimizer always preferred range or full index scan access methods to lookup access methods even when the latter were much cheaper. mysql-test/r/select.result@stripped, 2007-04-10 19:04:40+03:00, gkodinov@stripped +9 -0 Bug #19372: test case. The problem was fixed by the patch for bug #17379 mysql-test/t/select.test@stripped, 2007-04-10 19:04:40+03:00, gkodinov@stripped +13 -0 Bug #19372: test case. The problem was fixed by the patch for bug #17379 # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: gkodinov # Host: magare.gmz # Root: /home/kgeorge/mysql/work/B19372-5.0-opt --- 1.154/mysql-test/r/select.result 2007-03-26 16:52:51 +03:00 +++ 1.155/mysql-test/r/select.result 2007-04-10 19:04:40 +03:00 @@ -3986,4 +3986,13 @@ t2.access_id IN (1,4) AND t.access_id IS faq_id 265 DROP TABLE t1,t2; +CREATE TABLE t1 (a INT, b INT, KEY inx (b,a)); +INSERT INTO t1 VALUES (1,1), (1,2), (1,3), (1,4), (1,5), (1, 6), (1,7); +EXPLAIN SELECT COUNT(*) FROM t1 f1 INNER JOIN t1 f2 +ON ( f1.b=f2.b AND f1.a