Skip to content

Commit

Permalink
[parser] add errcode and errname of unsupported sequence default valu…
Browse files Browse the repository at this point in the history
…e for column type (pingcap#739)
  • Loading branch information
AilinKid authored and ti-chi-bot committed Oct 9, 2021
1 parent 644e72e commit bb8631c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions parser/mysql/errcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,7 @@ const (
ErrCancelFinishedDDLJob = 8225
ErrCannotCancelDDLJob = 8226
ErrSequenceUnsupportedTableOption = 8227
ErrColumnTypeUnsupportedNextValue = 8228

// TiKV/PD errors.
ErrPDServerTimeout = 9001
Expand Down
1 change: 1 addition & 0 deletions parser/mysql/errname.go
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@ var MySQLErrName = map[uint16]string{
ErrWarnOptimizerHintParseError: "Optimizer hint syntax error at %v",

ErrSequenceUnsupportedTableOption: "Unsupported sequence table-option %s",
ErrColumnTypeUnsupportedNextValue: "Unsupported sequence default value for column type '%s'",
ErrUnsupportedType: "Unsupported type %T",
ErrAnalyzeMissIndex: "Index '%s' in field list does not exist in table '%s'",
ErrCartesianProductUnsupported: "Cartesian product is unsupported",
Expand Down

0 comments on commit bb8631c

Please sign in to comment.