[MDEV-3339] LP:777654 - Wrong result with Aggregate + DISTINCT in FROM subquery in maria-5.3, 5.2 Created: 2011-05-05 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: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Reproducible in maria-5.3, maria-5.2. Not reproducible in MySQL 5.5 . The following query: SELECT * FROM ( SELECT SUM( DISTINCT f11 ) FROM t1) AS a1; returns (0) even though the FROM subquery returns (NULL); Test case: USE test; explain in maria 5.3: ---
---
--- explain in mysql 5.5: ---
---
--- |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-05-05 ] |
|
Re: Wrong result with Aggregate + DISTINCT in FROM subquery in maria-5.2, 5.2 |
| Comment by Rasmus Johansson (Inactive) [ 2012-02-20 ] |
|
Launchpad bug id: 777654 |