[MDEV-3051] LP:715069 - Wrong result with GROUP BY inside subquery and materialization=off in maria-5.3-mwl89 Created: 2011-02-08 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: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Not repeatable with maria-5.3 . The query below does not return any rows even though the row 8,8 matches both the ON and the WHERE predicates. CREATE TABLE t1 ( f1 int(11), f2 int(11), f10 varchar(1), PRIMARY KEY (f1)) ; SET SESSION optimizer_switch = 'materialization=off'; explain: id select_type table type possible_keys key key_len ref rows Extra correct result: SET SESSION optimizer_switch = 'materialization=on'; |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2011-02-14 ] |
|
Re: Wrong result with GROUP BY inside subquery and materialization=off in maria-5.3-mwl89 SELECT alias2.f1 FROM t1 AS alias1 right JOIN t1 AS alias2 ON alias2.f10 |
| Comment by Timour Katchaounov (Inactive) [ 2011-04-04 ] |
|
Re: Wrong result with GROUP BY inside subquery and materialization=off in maria-5.3-mwl89 CREATE TABLE t1 (f1a int, f2a int not null, f3a varchar(3) not null, PRIMARY KEY (f1a)) ; CREATE TABLE t2 (f1b int, f2b int not null, f3b varchar(3) not null, PRIMARY KEY (f1b)) ; SET @@optimizer_switch = 'materialization=off,subquery_cache=off'; SET @@optimizer_switch = 'materialization=on,subquery_cache=off'; |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 715069 |