[MDEV-3667] LP:993726 - Wrong result from a query with ALL subquery predicate in WHERE Created: 2012-05-03 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: | Critical |
| Reporter: | Igor Babaev | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following sequence of commands returns an incorrect result set in maridb-5.2: CREATE TABLE t1(a INT); MariaDB [test]> SELECT 1 FROM t1 WHERE 1 > ALL(SELECT 1 FROM t1 WHERE a!=0); (see also bug #12888306 for mysql code line) |
| Comments |
| Comment by Oleksandr Byelkin [ 2012-05-03 ] |
|
Re: Wrong result from a query with ALL subquery predicate in WHERE |
| Comment by Oleksandr Byelkin [ 2012-05-04 ] |
|
Re: Wrong result from a query with ALL subquery predicate in WHERE |
| Comment by Elena Stepanova [ 2012-05-04 ] |
|
Re: Wrong result from a query with ALL subquery predicate in WHERE CREATE TABLE t1(a INT); it does not mean that mysqltest returns 1; '1' is the automatic column name here, while the result is empty. If it was returning a result, it would look like this: SELECT 1 FROM t1; |
| Comment by Oleksandr Byelkin [ 2012-05-04 ] |
|
Re: Wrong result from a query with ALL subquery predicate in WHERE |
| Comment by Oleksandr Byelkin [ 2012-05-04 ] |
|
Re: Wrong result from a query with ALL subquery predicate in WHERE |
| Comment by Rasmus Johansson (Inactive) [ 2012-05-07 ] |
|
Launchpad bug id: 993726 |