Bug #29444 | crash with partition refering to table in create-select | ||
---|---|---|---|
Submitted: | 29 Jun 2007 13:29 | Modified: | 19 Oct 2007 8:35 |
Reporter: | Martin Friebe (Gold Quality Contributor) (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S2 (Serious) |
Version: | 5.1.20 | OS: | Any (Linux, FreeBSD) |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
Tags: | bfsm_2007_10_18, crash, create, partition, qc |
[29 Jun 2007 13:29]
Martin Friebe
[29 Jun 2007 13:31]
Sveta Smirnova
Thank you for the report. Verified as described on Linux.
[9 Oct 2007 14:17]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/35201 ChangeSet@1.2582, 2007-10-09 19:16:39+05:00, ramil@mysql.com +6 -0 Fix for bug #29444: crash with partition refering to table in create-select Problem: creating a partitioned table during name resolution for the partition function we search for column names in all parts of the CREATE TABLE query. It is superfluous (and wrong) sometimes. Fix: launch name resolution for the partition function against the table we're creating.
[18 Oct 2007 21:34]
Bugs System
Pushed into 5.1.23-beta
[18 Oct 2007 21:58]
Jon Stephens
Am I correct to assume that referring to a column from a different table in PARTITION BY ... is now checked for and disallowed? Thanks.
[19 Oct 2007 6:35]
Mikael Ronström
The bug was that by mistake fields from the table in the select part of CREATE TABLE t1 ... AS SELECT ... FROM t2 was allowed in the partition function. This was a side effect of the fix_fields. This fix ensures that only fields from the created table are allowed in the partition function, all other fields will be reported as a non-existing field.
[19 Oct 2007 8:35]
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 bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Documented fix in 5.1.23 changelog. Closed.