Bug #13435 Partitions: CREATE TABLE ... LIKE fails
Submitted: 23 Sep 2005 19:33 Modified: 20 Jan 2006 8:09
Reporter: Peter Gulutzan
Status: Closed
Category:Server: Partition Severity:S3 (Non-critical)
Version:5.1.2-alpha-debug OS:Linux (SUSE 9.2)
Assigned to: Mikael Ronstrom Target Version:

[23 Sep 2005 19:33] Peter Gulutzan
Description:
I can't say "CREATE TABLE a LIKE b" if b is a partitioned table.

How to repeat:
mysql> CREATE TABLE TA (s1 INT) PARTITION BY HASH (s1);
Query OK, 0 rows affected (0.16 sec)

mysql> CREATE TABLE TA2 LIKE TA;
ERROR 1037 (HY001): Out of memory; restart server and try again (needed 129 bytes)
[31 Oct 2005 15:58] Mikael Ronstrom
More or less new functionality was needed since this case wasn't taken into account
[19 Jan 2006 10:06] Mikael Ronstrom
Patch pushed and will appear in 5.1.6
[20 Jan 2006 8:09] 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 fix in 5.1.6 changelog. Closed.