[MDEV-15079] Parameter array operation inserts wrong values in autoincrement field if indicator was specified Created: 2018-01-26 Updated: 2018-04-25 Resolved: 2018-04-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert |
| Affects Version/s: | 10.3.4 |
| Fix Version/s: | 10.3.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lawrin Novitsky | Assignee: | Oleksandr Byelkin |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
If we have auto_increment field in the table, and we insert there a few rows using parameter array, and we have indicator array set for the auto_increment field, and for some row indicator value is set to STMT_INDICATOR_NULL or STMT_INDICATOR_IGNORE, for all subsequent rows server insert values like if same indicator value was set for them, too. i.e. it auto-incremented values instead of values specified in bound array. I don't think C/C can be here to blame - I traced execution, and things look sane. Besides same error is not exposed with 10.2 server. I am not sure if that is "major" issue, as this does not look like very probable scenario, but on other hand c/odbc testcases have it. Besides I don't think it's very hard to fix. Below is short program to repeat it
|
| Comments |
| Comment by Lawrin Novitsky [ 2018-03-27 ] |
|
I guess this bug has been fixed, since corresponding ODBC tests do not fail any more against 10.3 |
| Comment by Lawrin Novitsky [ 2018-04-17 ] |
|
I am just repeating once again here, that the bug was never observed with the 10.2 server, but with 10.3 server only |
| Comment by Oleksandr Byelkin [ 2018-04-25 ] |
|
It was fixed, but test suite was added |