[MDEV-650] LP:886146 - crash if JOIN::optimize fails in INSERT IGNORE Created: 2011-11-04 Updated: 2015-01-28 Resolved: 2014-10-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Golubchik | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
See MySQL's Bug#34660. |
| Comments |
| Comment by Sergei Golubchik [ 2011-11-04 ] | |||||||||||||||||
|
Re: crash if JOIN::optimize fails in INSERT IGNORE 1. INSERT IGNORE ... SELECT: ERROR 1048: Column 'c1' cannot be null This can be fixed with
2. UPDATE IGNORE T1 SET B=(SELECT ...) ERROR 1242: Subquery returns more than 1 row In my opinion this needs no fix. It correctly fails as it should. This error 3. DELETE IGNORE ... ERROR 1451: Cannot delete or update a parent row: a foreign key constraint fails This one is a bit more difficult to fix. | |||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2011-11-04 ] | |||||||||||||||||
|
Launchpad bug id: 886146 | |||||||||||||||||
| Comment by Elena Stepanova [ 2014-10-20 ] | |||||||||||||||||
|
Apparently the bug was fixed back in 5.3.3 by the following commit:
At least I am getting the crash using bug11747970 injection and the test case below on 5.3 tree up to revno: 3327.1.2, but the since the revision above the same test case only produces a regular error.
|