Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
-
10.2(EOL), 10.3(EOL), 10.4(EOL)
-
10.2.11
Description
With the dataset of MDEV-14023, ALTER TABLE will fail in InnoDB with a misleading error message:
ERROR 1901 (HY000): Function or expression 'AUTO_INCREMENT' cannot be used in the GENERATED ALWAYS AS clause of `AttendDet_ID`
|
All of the following statements will lead to the above response:
ALTER TABLE AttendDet ADD INDEX(counter), LOCK=NONE; |
ALTER TABLE AttendDet DROP INDEX IX_AttendDet_Shift, LOCK=NONE; |
ALTER TABLE AttendDet DROP INDEX IX_AttendDet_Shift, ALGORITHM=INPLACE; |
We must fix this (insert the missing records to SYS_VIRTUAL), so that early users of virtual columns in 10.1 will be able to quickly create indexes on the virtual columns in 10.2 (MDEV-5800), and to instantly add columns in 10.3 (MDEV-11369), among other things.
Attachments
Issue Links
- is blocked by
-
MDEV-14023 10.1 InnoDB tables with virtual columns cannot be accessed in 10.2
- Closed
-
MDEV-17199 Assertion `pos < table->n_v_def' failed in dict_table_get_nth_v_col after upgrade from 10.1/10.0 to 10.2
- Closed
-
MDEV-18084 Server crashes in row_upd_changes_some_index_ord_field_binary or Assertion `pos < index->n_def' failed in dict_index_get_nth_field upon UPDATE after upgrade from 10.1/10.0
- Closed
-
MDEV-19027 create_table_def fails when virtual column is present between stored columns
- Closed
-
MDEV-19066 AddressSanitizer: use-after-poison in innobase_build_col_map after upgrade from 10.1
- Closed
- relates to
-
MDEV-11424 Instant ALTER TABLE of failure-free record format changes
- Closed
-
MDEV-14341 Allow LOCK=NONE in table-rebuilding ALTER when indexed virtual columns exist
- Open
-
MDEV-17468 Avoid table rebuild on operations on generated columns
- Stalled
-
MDEV-5800 indexes on virtual (not materialized) columns
- Closed
-
MDEV-15476 Inplace algorithm doesn't support changing virtual column datatype
- Stalled
-
MDEV-16332 Allow ALGORITHM=NOCOPY or INSTANT for changes of virtual column type
- Confirmed
-
MDEV-19214 Virtual column type cannot be converted from one to another - unhelpful error message
- Open