Bug #1739 | Strange results when using @vars with GROUP BY | ||
---|---|---|---|
Submitted: | 3 Nov 2003 2:18 | Modified: | 18 Nov 2003 3:22 |
Reporter: | Konstantin Baryshnikov | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.0.16 | OS: | FreeBSD (FreeBSD 4.8) |
Assigned to: | Sergei Golubchik | CPU Architecture: | Any |
[3 Nov 2003 2:18]
Konstantin Baryshnikov
[17 Nov 2003 14:01]
Sergei Golubchik
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html there were several issues with this bugreport. Only one of them was a clear bug, it is fixed in the 4.0.17. Now MySQL behaves consistentlky - both queries return identical results, and neither of them "work perfectly" or at least works as one would expected. But as the result from assigning and using variable in the save query is not well defined (it depends on execution plan - in this particular case on using temporary table for GROUP BY) I would not call it a bug.
[18 Nov 2003 3:22]
Sergei Golubchik
oops, sorry for confusion. The patch is reverted. Indeed, as I said above "results from assigning and using variable in the save query are not well defined".