[MDEV-6809] Persistent columns don't with with autoincrement Created: 2014-09-29 Updated: 2017-01-12 Resolved: 2017-01-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Virtual Columns |
| Affects Version/s: | 10.0.14, 10.0, 10.1 |
| Fix Version/s: | 10.2.3 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Tim Bray | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | virtual_columns | ||
| Issue Links: |
|
||||||||
| Description |
|
Persistent columns don't work if they are based on an auto increment column.
I would expect the oid2 column to mirror the oid field. It works on update.
|
| Comments |
| Comment by Sergei Golubchik [ 2017-01-12 ] |
|
This is "fixed" in 10.2, in a sense that 10.2 does not allow virtual columns to refer to auto-increment fields. This is what MySQL does too. Technically, it's possible to make auto-increment and virtual columns to work together, but only by completely reimplementing auto-increment code. It's doable, but a very big high-risk change, certainly not a bug fix. |