mysqldude
Error codes › 3174

MySQL error 3174 ER_CANNOT_ADD_FOREIGN_BASE_COL_VIRTUAL

Error messageCannot add foreign key on the base column of indexed virtual column.
SymbolER_CANNOT_ADD_FOREIGN_BASE_COL_VIRTUAL
SQLSTATEHY000
TypeServer error
Versionssince 5.7.44 active
How the message changed between versions
MySQL fromSymbolMessage
5.7.44ER_CANNOT_CREATE_VIRTUAL_INDEX_CONSTRAINTCannot create index on virtual column whose base column has foreign constraint.
8.0.11ER_CANNOT_ADD_FOREIGN_BASE_COL_VIRTUALCannot add foreign key on the base column of indexed virtual column.