[MDEV-311] CHEAP SQ: Inconsistent behavior of subquery in SELECT and HAVING Created: 2012-06-05 Updated: 2012-06-06 Resolved: 2012-06-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.5.25 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The following type of scenarios produces lots of mismatches between the main 5.5 tree and
On 5.5 main tree, the query returns an empty result set. On The same query, but without a HAVING clause, returns (NULL, NULL) on both branches, which is also incorrect, see https://bugs.launchpad.net/maria/+bug/1008773. However, 5.5 really considers bb to be NULL when it applies the HAVING condition, while Possibly internally the behavior on Reproducible with MyISAM and Aria, but not InnoDB. Test case:
Result on 5.5 main:
Result on
|
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2012-06-06 ] |
|
This bug is a duplicate of https://bugs.launchpad.net/maria/+bug/1008773. |