Diverging results with GROUP BY + NULL in ANY subquery
Bug #823169 reported by
Philip Stoev
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| MariaDB |
Fix Released
|
Medium
|
Oleksandr "Sanja" Byelkin | ||
Bug Description
The following 2 queries:
SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
are equivalent and yet they return identical results. The first query returns no rows, the second returns rows.
Test case:
CREATE TABLE t1 (a int(11), b varchar(1));
INSERT INTO t1 VALUES (NULL,'
SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 GROUP BY b );
SELECT a FROM t1 WHERE b < ANY ( SELECT b FROM t1 );
Repeatable in maria-5.
| Changed in maria: | |
| assignee: | nobody → Oleksandr "Sanja" Byelkin (sanja-byelkin) |
| Changed in maria: | |
| milestone: | none → 5.3 |
| description: | updated |
| Changed in maria: | |
| milestone: | 5.3 → 5.2 |
| Changed in maria: | |
| importance: | Undecided → Medium |
| Changed in maria: | |
| status: | In Progress → Fix Committed |
| Changed in maria: | |
| status: | Fix Committed → Fix Released |
To post a comment you must log in.

It could be connected to https:/ /bugs.launchpad .net/maria/ +bug/780425