Bug #8660 | UNION query can cause server to crash | ||
---|---|---|---|
Submitted: | 21 Feb 2005 19:26 | Modified: | 31 Mar 2005 14:24 |
Reporter: | Bryan Berg | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.10 | OS: | Linux (Fedora Core 2, x86_64) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[21 Feb 2005 19:26]
Bryan Berg
[21 Feb 2005 21:44]
Martin Friebe
can be simplified (select 1,now()) union (select 2,now()) crashes too
[21 Feb 2005 21:50]
Martin Friebe
probably also related # crash select default(a) from ( select now() a ) x; # but fine with any other function or value instead of now
[21 Feb 2005 22:52]
Hartmut Holzgraefe
Verified on SuSE 9.0, x86. Happens on 4.1.10 only, 4.1.9 doesn't seem to be affected
[11 Mar 2005 21:26]
Matthew Sayler
ditto: select CURRENT_DATE() union select CURRENT_DATE()
[14 Mar 2005 12:24]
Gregor Odlazek
workaround: SELECT CONCAT(CURRENT_DATE(), '') UNION SELECT CONCAT(CURRENT_DATE(), ''); it only returns one row, so this is for two rows: SELECT CONCAT(CURRENT_DATE(), '') UNION SELECT DATE_ADD(CONCAT(CURRENT_DATE(), ''), INTERVAL 1 DAY);
[17 Mar 2005 7:47]
Dmitry Lenev
Bug #9216 was marked as duplicate for this one.
[31 Mar 2005 14:24]
Sergey Petrunya
No crashes with latest 4.1 tree. The issue has been fixed by Sanja as part of another bug fix. According to my discussion with Sanja he was working on a more general fix (and seems to have pushed it by now) The patch for this bug will not be pushed as it is redundant.
[24 Jan 2006 8:57]
Aleksey Kishkin
Sergey, could you clarify, which another bugfix did you mean? Was it backported to 4.0?
[24 Jan 2006 13:05]
Sergey Petrunya
This bug was fixed by fix for BUG#8824, the fix changeset was: ChangeSet # 2005/03/23 08:36:48+02:00 bell@sanja.is.com.ua # fixed union types merging and table related metadata (BUG#8824) Subject: bk commit - 4.1 tree (bell:1.2129) BUG#8824 Date: Wed, 23 Mar 2005 08:36:53 +0200 (EET)