Bug #49477 | Assertion `0' failed in ha_partition.cc:5530 with temporary table and partitions | ||
---|---|---|---|
Submitted: | 5 Dec 2009 21:30 | Modified: | 14 Oct 2010 14:34 |
Reporter: | Elena Stepanova | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S2 (Serious) |
Version: | 5.1.41-debug, 5.5.0-debug | OS: | Any |
Assigned to: | Mattias Jonsson | CPU Architecture: | Any |
[5 Dec 2009 21:30]
Elena Stepanova
[6 Dec 2009 9:01]
Sveta Smirnova
Thank you for the report. Verified as described.
[11 Dec 2009 17:42]
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/93744 3262 Mattias Jonsson 2009-12-11 Bug#49477: Assertion `0' failed in ha_partition.cc:5530 with temporary table and partitions It was possible to create temporary partitioned tables via create table ... like ... (which is not allowed with create temporary table). This lead to a new HA_EXTRA flag (HA_EXTRA_MMAP) was sent to the partitioning handler, which was caught on an assert in debug builds. Solution was to check for partitioned tables when doing create table ... like ... and disallow it. @ mysql-test/r/partition_error.result Bug#49477: Assertion `0' failed in ha_partition.cc:5530 with temporary table and partitions Added result @ mysql-test/t/partition_error.test Bug#49477: Assertion `0' failed in ha_partition.cc:5530 with temporary table and partitions Added test @ sql/sql_table.cc Bug#49477: Assertion `0' failed in ha_partition.cc:5530 with temporary table and partitions Added check to prevent creation of partitioned temporary tables. Only copy .par file for partitioned tables.
[25 May 2010 7:08]
Mattias Jonsson
pushed into mysql-5.1-bugteam and mysql-pe
[25 May 2010 13:47]
Mattias Jonsson
also pushed to mysql-trunk-merge
[28 May 2010 6:39]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100524190941-nuudpx60if25wsvx) (version source revid:alik@sun.com-20100524190409-5w4l7mje1wk1c90l) (merge vers: 6.0.14-alpha) (pib:16)
[1 Jun 2010 10:40]
Jon Stephens
Documented bugfix in the 6.0.14 changelog as follows: It was possible to execute a CREATE TEMPORARY TABLE tmp LIKE pt statement, where pt is a partitioned table, even though partitioned temporary tables are not permitted, which caused the server to crash. Now a check is performed to prevent such statements from being executed. Set status = NM, waiting for merges to 5.1 and 5.5 trees.
[2 Jun 2010 8:48]
Bugs System
Pushed into 5.1.48 (revid:georgi.kodinov@oracle.com-20100602084411-2yu607bslbmgufl3) (version source revid:mattias.jonsson@sun.com-20100521121814-7ohj7mk71zlzoxkl) (merge vers: 5.1.47) (pib:16)
[2 Jun 2010 12:30]
Jon Stephens
Also documented in the 5.1.48 changelog. Returned to NM pending 5.5 merge.
[14 Oct 2010 8:31]
Bugs System
Pushed into mysql-5.1-telco-7.0 5.1.51-ndb-7.0.20 (revid:martin.skold@mysql.com-20101014082627-jrmy9xbfbtrebw3c) (version source revid:vasil.dimov@oracle.com-20100513074652-0cvlhgkesgbb2bfh) (merge vers: 5.5.5-m3) (pib:21)
[14 Oct 2010 8:46]
Bugs System
Pushed into mysql-5.1-telco-6.3 5.1.51-ndb-6.3.39 (revid:martin.skold@mysql.com-20101014083757-5qo48b86d69zjvzj) (version source revid:vasil.dimov@oracle.com-20100513074652-0cvlhgkesgbb2bfh) (merge vers: 5.5.5-m3) (pib:21)
[14 Oct 2010 9:01]
Bugs System
Pushed into mysql-5.1-telco-6.2 5.1.51-ndb-6.2.19 (revid:martin.skold@mysql.com-20101014084420-y54ecj85j5we27oa) (version source revid:vasil.dimov@oracle.com-20100513074652-0cvlhgkesgbb2bfh) (merge vers: 5.5.5-m3) (pib:21)
[14 Oct 2010 12:57]
Jon Stephens
Already documented in 5.1.48; no new changelog entries required. Still waiting for 5.5 merge, returned status to NM.
[14 Oct 2010 14:34]
Jon Stephens
Added changelog entry to 5.5.5 changelog; closed.