Bug #245 Crash with UNION with subselect in ORDER BY
| Submitted: | 7 Apr 2003 23:43 | Modified: | 17 May 2003 8:01 |
|---|---|---|---|
| Reporter: | jocelyn fournier (Silver Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S1 (Critical) |
| Version: | 4.1 | OS: | Any (all) |
| Assigned to: | Michael Widenius | CPU Architecture: | Any |
[7 Apr 2003 23:43]
jocelyn fournier
[8 Apr 2003 5:52]
MySQL Verification Team
Thank you for your bug report.
It was a bug and this is a fix:
==== sql/item.cc 1.67 vs edited =====
*** /tmp/item.cc-1.67-19771 Fri Mar 28 16:58:44 2003
--- edited/sql/item.cc Tue Apr 8 15:42:38 2003
***************
*** 701,709 ****
(last= sl)->get_table_list(), &where,
0)) != not_found_field)
break;
! if ((refer= find_item_in_list(this, sl->item_list, &counter,
! REPORT_EXCEPT_NOT_FOUND)) !=
! (Item **)not_found_item)
break;
if (sl->master_unit()->first_select()->linkage ==
DERIVED_TABLE_TYPE)
--- 701,710 ----
(last= sl)->get_table_list(), &where,
0)) != not_found_field)
break;
! if (sl->item_list.elements &&
! ((refer= find_item_in_list(this, sl->item_list, &counter,
! REPORT_EXCEPT_NOT_FOUND)) !=
! (Item **)not_found_item))
break;
if (sl->master_unit()->first_select()->linkage ==
DERIVED_TABLE_TYPE)
[15 May 2003 8:12]
Michael Widenius
I reopened this bug as I strongly suspect that he fix was wrong. I have reverted the fix in 4.1 and we don't seam to have any problems in 4.1 even after this. (I hope this is becasue some other patch fixed this problem) Please test in 4.1.1 if you can get any queries like this to fail!
[15 May 2003 10:43]
jocelyn fournier
Hi, I'm unable to compile the latest bk tree to check if the bug is still here : mysqld.cc: In function `my_bool get_one_option(int, const my_option*, char*)': mysqld.cc:5056: error: `isam_skip' undeclared (first use this function) mysqld.cc:5056: error: (Each undeclared identifier is reported only once for each function it appears in.) mysqld.cc:5057: error: `isam_innodb' undeclared (first use this function) Regards, Jocelyn
[17 May 2003 8:00]
jocelyn fournier
Hi, After applying changeset 1.1531 the compilation problem is gone. I can also confirm the bug is fixed :) Jocelyn
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.052 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.