Bug #44306 | Assertion fail on duplicate key error in 'INSERT ... SELECT' statements | ||
---|---|---|---|
Submitted: | 16 Apr 2009 6:58 | Modified: | 26 Jun 2009 2:11 |
Reporter: | Yuan WANG | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S1 (Critical) |
Version: | 5.1.33, 5.1, 6.0 bzr | OS: | Any |
Assigned to: | Martin Hansson | CPU Architecture: | Any |
Tags: | regression |
[16 Apr 2009 6:58]
Yuan WANG
[16 Apr 2009 8:08]
Sveta Smirnova
Thank you for the report. Verified as described.
[16 Apr 2009 8:09]
Sveta Smirnova
Version 5.0 is not affected.
[21 Apr 2009 12:45]
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/72582 2861 Martin Hansson 2009-04-21 Bug#44306: Assertion fail on duplicate key error in 'INSERT ... SELECT' statements The code that produces result rows expected that a duplicate row error could not occur in INSERT ... SELECT statements with unfulfilled WHERE conditions. This may happen, however, if the SELECT list contains only aggregate functions. Fixed by checking if there is an error before trying to set status to 'ok'. @ mysql-test/r/insert_select.result Bug#44306: Test result @ mysql-test/t/insert_select.test Bug#44306: Test case @ sql/sql_insert.cc Bug#44306: Fix
[27 Apr 2009 15:56]
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/72843 2861 Martin Hansson 2009-04-27 Bug#44306: Assertion fail on duplicate key error in 'INSERT ... SELECT' statements The code that produces result rows expected that a duplicate row error could not occur in INSERT ... SELECT statements with unfulfilled WHERE conditions. This may happen, however, if the SELECT list contains only aggregate functions. Fixed by checking if an error occured before trying to send EOF to the client. @ mysql-test/r/insert_select.result Bug#44306: Test result @ mysql-test/t/insert_select.test Bug#44306: Test case @ sql/sql_select.cc Bug#44306: Fix
[4 May 2009 12:45]
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/73304 2877 Martin Hansson 2009-05-04 Bug#44306: Assertion fail on duplicate key error in 'INSERT ... SELECT' statements The code that produces result rows expected that a duplicate row error could not occur in INSERT ... SELECT statements with unfulfilled WHERE conditions. This may happen, however, if the SELECT list contains only aggregate functions. Fixed by checking if an error occured before trying to send EOF to the client. @ mysql-test/r/insert_select.result Bug#44306: Test result @ mysql-test/t/insert_select.test Bug#44306: Test case @ sql/sql_select.cc Bug#44306: Fix
[4 May 2009 12:56]
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/73305 3254 Martin Hansson 2009-05-04 [merge] Bug#44306: Assertion fail on duplicate key error in 'INSERT ... SELECT' statements Merge
[4 May 2009 12:57]
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/73306 2892 Martin Hansson 2009-05-04 [merge] Bug#44306: Assertion fail on duplicate key error in 'INSERT ... SELECT' statements Merge
[28 May 2009 8:18]
Bugs System
Pushed into 5.1.36 (revid:joro@sun.com-20090528073639-yohsb4q1jzg7ycws) (version source revid:mats@sun.com-20090511132802-nnkiyb2huih1tklz) (merge vers: 5.1.35) (pib:6)
[1 Jun 2009 20:20]
Paul DuBois
Noted in 5.1.36 changelog. Assertion failure could occur for duplicate-key errors in INSERT INTO ... SELECT statements. Setting report to NDI pending push into 6.0.x.
[2 Jun 2009 8:07]
Martin Hansson
Correct. The failed assertion appeared instead of the error message.
[17 Jun 2009 19:25]
Bugs System
Pushed into 5.4.4-alpha (revid:alik@sun.com-20090616183122-chjzbaa30qopdra9) (version source revid:mhansson@mysql.com-20090505082504-f9goof5x1eyrmlyi) (merge vers: 6.0.12-alpha) (pib:11)
[26 Jun 2009 2:11]
Paul DuBois
Noted in 5.4.4 changelog.
[12 Aug 2009 22:35]
Paul DuBois
Noted in 5.4.2 changelog because next 5.4 version will be 5.4.2 and not 5.4.4.
[15 Aug 2009 1:53]
Paul DuBois
Ignore previous comment about 5.4.2.
[26 Aug 2009 13:46]
Bugs System
Pushed into 5.1.37-ndb-7.0.8 (revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[26 Aug 2009 13:46]
Bugs System
Pushed into 5.1.37-ndb-6.3.27 (revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (version source revid:jonas@mysql.com-20090826105955-bkj027t47gfbamnc) (merge vers: 5.1.37-ndb-6.3.27) (pib:11)
[26 Aug 2009 13:48]
Bugs System
Pushed into 5.1.37-ndb-6.2.19 (revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (version source revid:jonas@mysql.com-20090825194404-37rtosk049t9koc4) (merge vers: 5.1.37-ndb-6.2.19) (pib:11)
[27 Aug 2009 16:33]
Bugs System
Pushed into 5.1.35-ndb-7.1.0 (revid:magnus.blaudd@sun.com-20090827163030-6o3kk6r2oua159hr) (version source revid:jonas@mysql.com-20090826132541-yablppc59e3yb54l) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[7 Oct 2009 20:26]
Paul DuBois
The 5.4 fix has been pushed to 5.4.2.