Bug #8500 | User Variable not working with Group By | ||
---|---|---|---|
Submitted: | 14 Feb 2005 15:15 | Modified: | 14 Feb 2005 19:31 |
Reporter: | Ingo Welling | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 3.23.58 | OS: | Linux (Fedora Core 2) |
Assigned to: | CPU Architecture: | Any |
[14 Feb 2005 15:15]
Ingo Welling
[14 Feb 2005 17:40]
MySQL Verification Team
Hi, Thank you for the report, but 3.23 is retired and only critical bugs are fixed in this series. Please, upgrade MySQL server to the recent stable version.
[14 Feb 2005 19:31]
Sergei Golubchik
See http://dev.mysql.com/doc/mysql/en/variables.html In particular, note the line "The general rule is to never assign and use the same variable in the same statement."
[15 Feb 2005 12:24]
Ingo Welling
In my eyes this is a critical bug. As it has been working in 3.23 and now it's silently delivering differrent results. Which leads to wrong relsults without notice. I've read the man-page you mentioned before, but it's not very clear as in the first example on the page you do a similar thing: mysql> SELECT @t1:=(@t2:=1)+@t3:=4,@t1,@t2,@t3; Is there a way to make my exaple work on 4.1.9? (all I want to do is to accumulate results with a start value) Will it be supported (in future) if I leave out group by and sum?