[MDEV-6400] "ANALYZE SELECT ... INTO @var" doesn't set @var Created: 2014-06-26 Updated: 2014-10-17 Resolved: 2014-10-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | None |
| Fix Version/s: | 10.1.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | analyze-stmt, optimizer | ||
| Issue Links: |
|
||||||||
| Description |
|
ANALYZE SELECT ... INTO @var will not set @var:
If we assume that ANALYZE $stmt should make the action specified by $stmt, then @var should be set. |
| Comments |
| Comment by Sergei Petrunia [ 2014-06-26 ] | |||||||||||
|
Internally, it is clear - ANALYZE code captures and discards the output. Maybe, it should detect outputs that don't send to the client (like. select_dumpvar) and let them still capture the output. | |||||||||||
| Comment by Sergei Petrunia [ 2014-10-14 ] | |||||||||||
|
Replacing the result output sink may have an effect on the result of the query:
Another example:
it inserts rows (correct behavior) but doesn't produce EXPLAIN output (wrong). | |||||||||||
| Comment by Sergei Petrunia [ 2014-10-15 ] | |||||||||||
|
EXPLAIN works for
EXPLAIN doesnt work for ANALYZE needs to work whenever SELECT works.
|