[MDEV-3586] LP:985667 - Wrong result with subquery in SELECT clause, and constant table in main query and implicit grouping Created: 2012-04-19 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: | Timour Katchaounov (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following test case, extracted from the test for bug lp:680846 produces wrong result: CREATE TABLE t1 (f1 int) ; CREATE TABLE t2 (f2 int, f3 varchar(32)) ; SELECT COUNT(f2), (SELECT f1 FROM t1 WHERE t2.f2 limit 1) AS f4 ----------
----------
---------- The correct result is: ----------
----------
---------- |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2012-04-27 ] |
|
Launchpad bug id: 985667 |