[MDEV-8321] Assertion `! is_set()' failed in Diagnostics_area::set_eof_status on EXPLAIN INSERT ... UNION Created: 2015-06-16 Updated: 2015-10-06 Resolved: 2015-10-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.0, 10.1 |
| Fix Version/s: | 10.0.22 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Note: See also
|
| Comments |
| Comment by Sergei Petrunia [ 2015-10-05 ] | ||
|
When I run
there is no problem. The query calls select_insert::prepare(), When I run
I see calls to: and then we crash when trying to send EXPLAIN output. | ||
| Comment by Sergei Petrunia [ 2015-10-05 ] | ||
|
The reason for this is as follows:
I then ran EXPLAIN SELECT * FROM t2 UNION SELECT * FROM test.one_k and there all three joins had (select_options & SELECT_DESCRIBE) != 0. | ||
| Comment by Sergei Petrunia [ 2015-10-05 ] | ||
|
Another difference: with EXPLAIN SELECT * FROM t2 UNION SELECT * FROM test.one_k, all three JOINs have their (select_lex->options & SELECT_DESCRIBE). This is somehow not true for the EXPLAIN INSERT SELECT case. | ||
| Comment by Sergei Petrunia [ 2015-10-05 ] | ||
|
Fix for |