Skip to content

Commit e3789d9

Browse files
cfzjywxkjackysp
authored andcommitted
error code for sysvar.go (#634)
1 parent 83794f7 commit e3789d9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

mysql/errcode.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@ const (
972972
ErrIndexStateCantNone = 8044
973973
ErrInvalidRecordKey = 8045
974974
ErrColumnStateCantNone = 8046
975+
ErrUnsupportedValueForVar = 8047
976+
ErrUnsupportedIsolationLevel = 8048
975977

976978
// TiKV/PD errors.
977979
ErrPDServerTimeout = 9001

mysql/errname.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,8 @@ var MySQLErrName = map[uint16]string{
968968
ErrColumnStateNonPublic: "can not use non-public column",
969969
ErrIndexStateCantNone: "index %s can't be in none state",
970970
ErrInvalidRecordKey: "invalid record key",
971+
ErrUnsupportedValueForVar: "variable '%s' does not yet support value: %s",
972+
ErrUnsupportedIsolationLevel: "The isolation level '%s' is not supported. Set tidb_skip_isolation_level_check=1 to skip this error",
971973

972974
// TiKV/PD errors.
973975
ErrPDServerTimeout: "PD server timeout",

0 commit comments

Comments
 (0)