MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Ingo Struewing Date:November 15 2007 10:36am
Subject:bk commit into 5.1 tree (istruewing:1.2618) BUG#22351
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of istruewing. When istruewing 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-11-15 11:36:50+01:00, istruewing@stripped +2 -0
  Bug#22351 - handler::index_next_same() call to key_cmp_if_same() uses
              the wrong buffer
  Post-pushbuild fix
  Added test case for better coverage.

  mysql-test/r/partition.result@stripped, 2007-11-15 11:36:49+01:00, istruewing@stripped +7 -0
    Bug#22351 - handler::index_next_same() call to key_cmp_if_same() uses
                the wrong buffer
    Added test result

  mysql-test/t/partition.test@stripped, 2007-11-15 11:36:49+01:00, istruewing@stripped +10 -0
    Bug#22351 - handler::index_next_same() call to key_cmp_if_same() uses
                the wrong buffer
    Added test case

diff -Nrup a/mysql-test/r/partition.result b/mysql-test/r/partition.result
--- a/mysql-test/r/partition.result	2007-11-12 14:58:18 +01:00
+++ b/mysql-test/r/partition.result	2007-11-15 11:36:49 +01:00
@@ -289,6 +289,13 @@ select * from t1 where a = 4;
 a	b
 4	4
 drop table t1;
+CREATE TABLE t1 (c1 INT, c2 INT, PRIMARY KEY USING BTREE (c1,c2)) ENGINE=MEMORY
+PARTITION BY KEY(c2,c1) PARTITIONS 4;
+INSERT INTO t1 VALUES (0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6);
+SELECT * FROM t1 WHERE c1 = 4;
+c1	c2
+4	4
+DROP TABLE t1;
 CREATE TABLE t1 (a int)
 PARTITION BY LIST (a)
 PARTITIONS 1
diff -Nrup a/mysql-test/t/partition.test b/mysql-test/t/partition.test
--- a/mysql-test/t/partition.test	2007-11-02 10:53:17 +01:00
+++ b/mysql-test/t/partition.test	2007-11-15 11:36:49 +01:00
@@ -373,6 +373,16 @@ select * from t1 where a = 4;
 drop table t1;
 
 #
+# Bug#22351 - handler::index_next_same() call to key_cmp_if_same()
+#             uses the wrong buffer
+#
+CREATE TABLE t1 (c1 INT, c2 INT, PRIMARY KEY USING BTREE (c1,c2)) ENGINE=MEMORY
+  PARTITION BY KEY(c2,c1) PARTITIONS 4;
+INSERT INTO t1 VALUES (0,0),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6);
+SELECT * FROM t1 WHERE c1 = 4;
+DROP TABLE t1;
+
+#
 # Bug #13438: Engine clause in PARTITION clause causes crash
 #
 CREATE TABLE t1 (a int)
Thread
bk commit into 5.1 tree (istruewing:1.2618) BUG#22351Ingo Struewing15 Nov