User,
Tuesday, September 03, 2002, 7:54:05 AM, you wrote:
>Description:
UT> A specific query in the format of:
UT> SELECT DISTINCT a.*, b.* FROM privatemessage LEFT JOIN b ON (b.x = a.y);
UT> Is causing a segfault. This worked fine in the 3.23 series.
Thanks for bug report! It's already fixed.
Here is a patch from Sinisa Milivoevic:
===== sql/sql_base.cc 1.131 vs edited =====
*** /tmp/sql_base.cc-1.131-30970 Tue Sep 3 16:50:57 2002
--- edited/sql/sql_base.cc Tue Sep 3 22:33:13 2002
***************
*** 1777,1785 ****
--- 1777,1788 ----
if (item->type() == Item::FIELD_ITEM &&
((Item_field*) item)->field_name[0] == '*')
{
+ uint elem=fields.elements;
if (insert_fields(thd,tables,((Item_field*) item)->db_name,
((Item_field*) item)->table_name,&it))
DBUG_RETURN(-1); /* purecov: inspected */
+ if (sum_func_list)
+ sum_func_list->elements += fields.elements - elem;
}
else
{
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Victoria Reznichenko
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php