Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql: add foreign key error #675

Merged
merged 2 commits into from
Dec 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mysql/errcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ const (
ErrSpatialFunctionalIndex = 3760
ErrWrongKeyColumnFunctionalIndex = 3761
ErrFunctionalIndexOnField = 3762
ErrFKIncompatibleColumns = 3780
ErrFunctionalIndexRowValueIsNotAllowed = 3800
ErrDependentByFunctionalIndex = 3837
ErrInvalidJsonValueForFuncIndex = 3903
Expand Down
1 change: 1 addition & 0 deletions mysql/errname.go
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ var MySQLErrName = map[uint16]string{
ErrSpatialFunctionalIndex: "Spatial functional index is not supported",
ErrWrongKeyColumnFunctionalIndex: "The used storage engine cannot index the expression '%s'",
ErrFunctionalIndexOnField: "Functional index on a column is not supported. Consider using a regular index instead",
ErrFKIncompatibleColumns: "Referencing column '%s' in foreign key constraint '%s' are incompatible",
ErrFunctionalIndexRowValueIsNotAllowed: "Expression of functional index '%s' cannot refer to a row value",
ErrDependentByFunctionalIndex: "Column '%s' has a functional index dependency and cannot be dropped or renamed",
ErrInvalidJsonValueForFuncIndex: "Invalid JSON value for CAST for functional index '%s'",
Expand Down