[MDEV-4590] Wrong result on second PS execution with early constant subquery optimization (MDEV-83) Created: 2013-05-27 Updated: 2013-06-03 Resolved: 2013-06-03 |
|
| 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: | None | ||
| Description |
|
The following test case extracted from subselect_sj.test fails with MDEV-83 due to early subquery optimization. drop table if exists t0, t1, t2, t10; set @@storage_engine=myisam; create table t0 (a int); – Force a very simple query plan select * prepare s1 from |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2013-05-27 ] |
|
The bug is related to materialization (both with and without sem-join. Simpler test case: ------------------------------------------ set @@storage_engine=myisam; create table t1(a int, b int); create table t2(c int, d int); create table t10 (pk int, a int, primary key(pk)); – Force a very simple query plan prepare s1 from deallocate prepare s1; |
| Comment by Timour Katchaounov (Inactive) [ 2013-06-03 ] |
|
Approved by SergeyP, pushed to mdev-83. |