List:Commits« Previous MessageNext Message »
From:reggie Date:January 23 2006 3:44pm
Subject:bk commit into 5.1 tree (reggie:1.2067) BUG#16534
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of reggie. When reggie 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
  1.2067 06/01/23 09:44:13 reggie@stripped +2 -0
  BUG# 16534: just a change to the test suite showing that it's fixed.
  This bug was fixed as part of the large WL 2604 push.

  mysql-test/t/partition_mgm_err.test
    1.4 06/01/23 09:44:06 reggie@stripped +17 -0
    test block for bug# 16534

  mysql-test/r/partition_mgm_err.result
    1.4 06/01/23 09:44:06 reggie@stripped +13 -0
    results block for bug #16534

# 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:	reggie
# Host:	linux.site
# Root:	/home/reggie/work/mysql-5.1

--- 1.3/mysql-test/r/partition_mgm_err.result	2006-01-17 01:37:20 -06:00
+++ 1.4/mysql-test/r/partition_mgm_err.result	2006-01-23 09:44:06 -06:00
@@ -112,3 +112,16 @@
 ALTER TABLE t1 DROP PARTITION x0;
 ERROR HY000: Cannot remove all partitions, use DROP TABLE instead
 DROP TABLE t1;
+CREATE TABLE t1 ( id INT NOT NULL,
+fname VARCHAR(50) NOT NULL,
+lname VARCHAR(50) NOT NULL,
+hired DATE NOT NULL )
+PARTITION BY RANGE(YEAR(hired)) (
+PARTITION p1 VALUES LESS THAN (1991),
+PARTITION p2 VALUES LESS THAN (1996),
+PARTITION p3 VALUES LESS THAN (2001),
+PARTITION p4 VALUES LESS THAN (2005));
+ALTER TABLE t1 ADD PARTITION (
+PARTITION p5 VALUES LESS THAN (2010),
+PARTITION p6 VALUES LESS THAN MAXVALUE);
+DROP TABLE t1;

--- 1.3/mysql-test/t/partition_mgm_err.test	2006-01-17 01:37:21 -06:00
+++ 1.4/mysql-test/t/partition_mgm_err.test	2006-01-23 09:44:06 -06:00
@@ -167,3 +167,20 @@
 ALTER TABLE t1 DROP PARTITION x0;
 
 DROP TABLE t1;
+
+#
+# Bug# 16534 - Trying to add multiple partitions crashes server
+#
+CREATE TABLE t1 ( id INT NOT NULL,
+                  fname VARCHAR(50) NOT NULL,
+                  lname VARCHAR(50) NOT NULL,
+                  hired DATE NOT NULL )
+PARTITION BY RANGE(YEAR(hired)) (
+  PARTITION p1 VALUES LESS THAN (1991),
+  PARTITION p2 VALUES LESS THAN (1996),
+  PARTITION p3 VALUES LESS THAN (2001),
+  PARTITION p4 VALUES LESS THAN (2005));
+ALTER TABLE t1 ADD PARTITION (
+  PARTITION p5 VALUES LESS THAN (2010),
+  PARTITION p6 VALUES LESS THAN MAXVALUE);
+DROP TABLE t1;
Thread
bk commit into 5.1 tree (reggie:1.2067) BUG#16534reggie23 Jan