List:Commits« Previous MessageNext Message »
From:tim Date:October 24 2006 6:01pm
Subject:bk commit into 5.1 tree (tsmith:1.2322)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of tsmith. When tsmith 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, 2006-10-24 20:01:01+02:00, tsmith@stripped +3 -0
  Merge bk-internal.mysql.com:/home/bk/mysql-5.1-maint
  into  maint1.mysql.com:/data/localhome/tsmith/bk/51
  MERGE: 1.2310.1.27

  mysql-test/include/mix1.inc@stripped, 2006-10-24 20:00:54+02:00, tsmith@stripped +0 -0
    Auto merged
    MERGE: 1.14.1.2

  mysql-test/r/innodb_mysql.result@stripped, 2006-10-24 20:00:54+02:00, tsmith@stripped +0 -0
    Auto merged
    MERGE: 1.14.1.2

  mysql-test/t/view.test@stripped, 2006-10-24 20:00:55+02:00, tsmith@stripped +0 -0
    Auto merged
    MERGE: 1.165.1.5

# 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:	tsmith
# Host:	maint1.mysql.com
# Root:	/data/localhome/tsmith/bk/51/RESYNC

--- 1.16/mysql-test/r/innodb_mysql.result	2006-10-24 19:58:35 +02:00
+++ 1.17/mysql-test/r/innodb_mysql.result	2006-10-24 19:58:35 +02:00
@@ -300,6 +300,22 @@ id	select_type	table	type	possible_keys	
 1	SIMPLE	t2	index	NULL	fkey	5	NULL	5	Using index
 1	SIMPLE	t1	eq_ref	PRIMARY	PRIMARY	4	test.t2.fkey	1	Using where
 DROP TABLE t1,t2;
+CREATE TABLE t1 (a INT PRIMARY KEY, b INT, c FLOAT, KEY b(b)) ENGINE = INNODB;
+INSERT INTO t1 VALUES (    1 , 1              , 1);
+INSERT INTO t1 SELECT  a + 1 , MOD(a + 1 , 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 2 , MOD(a + 2 , 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 4 , MOD(a + 4 , 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 8 , MOD(a + 8 , 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 16, MOD(a + 16, 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 32, MOD(a + 32, 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 64, MOD(a + 64, 20), 1 FROM t1;
+EXPLAIN SELECT b, SUM(c) FROM t1 GROUP BY b;
+id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
+1	SIMPLE	t1	index	NULL	b	5	NULL	128	
+EXPLAIN SELECT SQL_BIG_RESULT b, SUM(c) FROM t1 GROUP BY b;
+id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
+1	SIMPLE	t1	ALL	NULL	NULL	NULL	NULL	128	Using filesort
+DROP TABLE t1;
 CREATE TABLE t1 (a int, b int);
 insert into t1 values (1,1),(1,2);
 CREATE TABLE t2 (primary key (a)) select * from t1;

--- 1.16/mysql-test/include/mix1.inc	2006-10-24 19:58:35 +02:00
+++ 1.17/mysql-test/include/mix1.inc	2006-10-24 19:58:35 +02:00
@@ -342,6 +342,24 @@ SELECT COUNT(*) FROM t2 LEFT JOIN t1 ON 
 DROP TABLE t1,t2;
 
 #
+# Bug#22781: SQL_BIG_RESULT fails to influence sort plan
+#
+CREATE TABLE t1 (a INT PRIMARY KEY, b INT, c FLOAT, KEY b(b)) ENGINE = INNODB;
+
+INSERT INTO t1 VALUES (    1 , 1              , 1);
+INSERT INTO t1 SELECT  a + 1 , MOD(a + 1 , 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 2 , MOD(a + 2 , 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 4 , MOD(a + 4 , 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 8 , MOD(a + 8 , 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 16, MOD(a + 16, 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 32, MOD(a + 32, 20), 1 FROM t1;
+INSERT INTO t1 SELECT  a + 64, MOD(a + 64, 20), 1 FROM t1;
+
+EXPLAIN SELECT b, SUM(c) FROM t1 GROUP BY b;
+EXPLAIN SELECT SQL_BIG_RESULT b, SUM(c) FROM t1 GROUP BY b;
+DROP TABLE t1;
+
+#
 # Test of behaviour with CREATE ... SELECT
 #
 
Thread
bk commit into 5.1 tree (tsmith:1.2322)tim24 Oct