[MDEV-5082] EXPLAIN INSERT .. VALUES works as INSERT (adds rows to the table) Created: 2013-10-01 Updated: 2015-10-26 Resolved: 2015-10-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.0.21-galera |
| Fix Version/s: | 10.0.5, 10.0.22, 10.1.8 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
It may not return an execution plan if we don't want it to, but it certainly shouldn't insert any records. |
| Comments |
| Comment by Sergei Petrunia [ 2013-10-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Not repeatable with the latest tree. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2015-10-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
note 'a' missing from table. Thanks to jkavalik for the test case on irc. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2015-10-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
added test case above. config as per | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jiri Kavalik [ 2015-10-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
I am able to reproduce it on 10.0.21-MariaDB-1~precise-log mariadb.org binary distribution - Ubuntu 12.04.5 64bit (kernel 3.2.0-84-generic) I am not sure if it is some symptom or irrelevant coincidence but show create table tt_temp; shows (note the auto_increment value
and subsequent insert really adds rows from id 16 up, skipping some auto_increment values - I know gaps in auto_increment are not wrong by themselves but I mention it in case it could hint to something. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-10-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
It was fixed in scope of |