Skip to content

Commit

Permalink
error code for sysvar.go (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfzjywxk authored and jackysp committed Nov 11, 2019
1 parent 83794f7 commit e3789d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mysql/errcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,8 @@ const (
ErrIndexStateCantNone = 8044
ErrInvalidRecordKey = 8045
ErrColumnStateCantNone = 8046
ErrUnsupportedValueForVar = 8047
ErrUnsupportedIsolationLevel = 8048

// TiKV/PD errors.
ErrPDServerTimeout = 9001
Expand Down
2 changes: 2 additions & 0 deletions mysql/errname.go
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,8 @@ var MySQLErrName = map[uint16]string{
ErrColumnStateNonPublic: "can not use non-public column",
ErrIndexStateCantNone: "index %s can't be in none state",
ErrInvalidRecordKey: "invalid record key",
ErrUnsupportedValueForVar: "variable '%s' does not yet support value: %s",
ErrUnsupportedIsolationLevel: "The isolation level '%s' is not supported. Set tidb_skip_isolation_level_check=1 to skip this error",

// TiKV/PD errors.
ErrPDServerTimeout: "PD server timeout",
Expand Down

0 comments on commit e3789d9

Please sign in to comment.