Bug #13435 Partitions: CREATE TABLE ... LIKE fails
Submitted: 23 Sep 2005 17:33 Modified: 20 Jan 2006 7:09
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: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 14:58] Mikael Ronström
More or less new functionality was needed since this case wasn't taken into account
[19 Jan 2006 9:06] Mikael Ronström
Patch pushed and will appear in 5.1.6
[20 Jan 2006 7: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.