[MDEV-2598] LP:780425 - sql_buffer_result=1 gives wrong result for GROUP BY with a constant expression Created: 2011-05-10 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: | Minor |
| Reporter: | Michael Widenius | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
This fails in MySQL 5.1, MariaDB 5.1 and above: drop table if exists t1; The second query return two rows, the first one only one row (which is correct). |
| Comments |
| Comment by Oleksandr Byelkin [ 2011-07-22 ] |
|
Re: sql_buffer_result=1 gives wrong result for GROUP BY with subquery CREATE TABLE t1(f1 int UNSIGNED); |
| Comment by Oleksandr Byelkin [ 2011-07-22 ] |
|
Re: sql_buffer_result=1 gives wrong result for GROUP BY with subquery |
| Comment by Oleksandr Byelkin [ 2011-07-22 ] |
|
Re: sql_buffer_result=1 gives wrong result for GROUP BY with subquery |
| Comment by Oleksandr Byelkin [ 2011-07-25 ] |
|
Re: sql_buffer_result=1 gives wrong result for GROUP BY with subquery SELECT 1 as 'one' FROM t1 GROUP BY '123' = 'abc'; |
| Comment by Oleksandr Byelkin [ 2011-07-25 ] |
|
Re: sql_buffer_result=1 gives wrong result for GROUP BY with a constant expression CREATE TABLE t1(f1 int UNSIGNED); |
| Comment by Oleksandr Byelkin [ 2011-07-25 ] |
|
Re: sql_buffer_result=1 gives wrong result for GROUP BY with a constant expression |
| Comment by Oleksandr Byelkin [ 2011-07-25 ] |
|
Re: sql_buffer_result=1 gives wrong result for GROUP BY with a constant expression For query with no sql_buffer_result set need_tmp is also unset so we have no such problem. |
| Comment by Rasmus Johansson (Inactive) [ 2011-11-15 ] |
|
Launchpad bug id: 780425 |
| Comment by Michael Widenius [ 2011-11-15 ] |
|
Re: sql_buffer_result=1 gives wrong result for GROUP BY with a constant expression |