[MDEV-7810] Wrong result on execution of a query as a PS (both 1st and further executions) Created: 2015-03-20 Updated: 2015-07-31 Resolved: 2015-06-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Prepared Statements |
| Affects Version/s: | 5.5.35, 5.5, 10.0, 10.1 |
| Fix Version/s: | 5.5.45, 10.0.21 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression, verified | ||
| Sprint: | 5.5.44 |
| Description |
|
The problem appeared on 5.5 tree with the following revision:
Both results are incorrect.
|
| Comments |
| Comment by Michael Widenius [ 2015-06-16 ] |
|
Problem was that for cases like: The bug was that for normal execution XX was fixed in the original outer SELECT context while in PS it was fixed in the sub query context and this confused the optimizer. Fixed by ensuring that XX is always fixed in the outer context. |
| Comment by Michael Widenius [ 2015-06-26 ] |
|
Fix pushed into 5.5 tree |