[MDEV-2522] LP:993459 - Execution of PS for a query with GROUP BY returns wrong result Created: 2012-05-02 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Oleksandr Byelkin |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following sequence of commands returns a wrong result in MariaDb 5.2 (but not in 5.3/5.5) : PREPARE s1 FROM " SET @x = 1; SELECT c1, t2.c2, count(c3) For the last statement we have:
--------------------
--------------------
--------------------
-------------------- (see also bug #13805127 for mysql-5.5) |
| Comments |
| Comment by Oleksandr Byelkin [ 2012-05-16 ] |
|
Re: Execution of PS for a query with GROUP BY returns wrong result IMHO it will be better do not fix 5.2 and we have in fixed in 5.3 and up due to other order of OPTIMIZATION/EXECUTION for subqueries. |
| Comment by Rasmus Johansson (Inactive) [ 2012-05-17 ] |
|
Launchpad bug id: 993459 |