Bug #13447 Partitions: crash with alter table
Submitted: 23 Sep 2005 17:45 Modified: 20 Jan 2006 10:40
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Partitions Severity:S3 (Non-critical)
Version:5.1.2-alpha-debug OS:Linux (SUSE 9.2)
Assigned to: Mikael Ronström CPU Architecture:Any

[23 Sep 2005 17:45] Peter Gulutzan
Description:
If I say "alter table ... add partition ...", crash.

How to repeat:
mysql> create table t2 (s1 int) partition by list (s1) (partition x1 values in (1),partition x2 values in (2));
Query OK, 0 rows affected (0.01 sec)

mysql> alter table t2 add partition (partition x3 values in (4));
ERROR 2013 (HY000): Lost connection to MySQL server during query
[19 Oct 2005 16:56] Mikael Ronström
Already fixed in new patch with proper implementation of
partition management
[22 Dec 2005 18:10] Matthias Leich
A single or double ADD PARTITION works in
bk-internal.mysql.com:/home/bk/mysql-5.1-wl2604-new
        ChangeSet@1.1982, 2005-12-21
but:
CREATE TABLE t1 ( f1 INTEGER, f2 char(20))
PARTITION    BY HASH(f1) (PARTITION part1, PARTITION part3);
ALTER TABLE t1 ADD PARTITION (PARTITION part0);
ALTER TABLE t1 ADD PARTITION (PARTITION part2);
ALTER TABLE t1 ADD PARTITION (PARTITION part4);

SELECT * FROM t1; 
mysqltest: At line 7: query 'SELECT * FROM t1' failed: 1037: Out of memory; restart server and try again (needed 64 bytes
[19 Jan 2006 9:00] Mikael Ronström
Patch pushed and will appear in 5.1.6
[20 Jan 2006 10:40] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Documented bugfix in 5.1.6 changelog. Closed.