Bug #9922 | INSERT SELECT with UNIONs allows illegal concurrent INSERTs | ||
---|---|---|---|
Submitted: | 15 Apr 2005 5:10 | Modified: | 16 Apr 2005 16:56 |
Reporter: | Lachlan Mulcahy | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0.24 | OS: | Any (Any) |
Assigned to: | Sergei Golubchik | CPU Architecture: | Any |
[15 Apr 2005 5:10]
Lachlan Mulcahy
[15 Apr 2005 5:20]
Lachlan Mulcahy
This is so far only repeatable on 4.0.x; 4.1 seems unaffected.
[15 Apr 2005 17:12]
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/internals/24058
[15 Apr 2005 17:13]
Sergei Golubchik
4.1 is affected too. Just make sure t1 is not the first table in the UNION. E.g. INSERT INTO table SELECT 'foo' UNION SELECT field FROM t1 WHERE id > 20;
[16 Apr 2005 16:56]
Sergei Golubchik
Fixed in 4.0.25 and 4.1.12