Skip to content

Commit 53ef012

Browse files
cfzjywxkjackysp
authored andcommitted
add error code (#678)
1 parent 7320ce0 commit 53ef012

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

mysql/errcode.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,16 @@ const (
10391039
ErrCancelledDDLJob = 8214
10401040
ErrRepairTable = 8215
10411041
ErrInvalidAutoRandom = 8216
1042+
ErrInvalidHashKeyFlag = 8217
1043+
ErrInvalidListIndex = 8218
1044+
ErrInvalidListMetaData = 8219
1045+
ErrWriteOnSnapshot = 8220
1046+
ErrInvalidKey = 8221
1047+
ErrInvalidIndexKey = 8222
1048+
ErrDataInConsistent = 8223
1049+
ErrDDLJobNotFound = 8224
1050+
ErrCancelFinishedDDLJob = 8225
1051+
ErrCannotCancelDDLJob = 8226
10421052

10431053
// TiKV/PD errors.
10441054
ErrPDServerTimeout = 9001

mysql/errname.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,16 @@ var MySQLErrName = map[uint16]string{
10181018
ErrSnapshotTooOld: "snapshot is older than GC safe point %s",
10191019
ErrInvalidTableID: "invalid TableID",
10201020
ErrInvalidAutoRandom: "Invalid auto random: %s",
1021+
ErrInvalidHashKeyFlag: "invalid encoded hash key flag",
1022+
ErrInvalidListIndex: "invalid list index",
1023+
ErrInvalidListMetaData: "invalid list meta data",
1024+
ErrWriteOnSnapshot: "write on snapshot",
1025+
ErrInvalidKey: "invalid key",
1026+
ErrInvalidIndexKey: "invalid index key",
1027+
ErrDataInConsistent: "data isn't equal",
1028+
ErrDDLJobNotFound: "DDL Job:%v not found",
1029+
ErrCancelFinishedDDLJob: "This job:%v is finished, so can't be cancelled",
1030+
ErrCannotCancelDDLJob: "This job:%v is almost finished, can't be cancelled now",
10211031

10221032
ErrUnsupportedType: "Unsupported type %T",
10231033
ErrAnalyzeMissIndex: "Index '%s' in field list does not exist in table '%s'",

0 commit comments

Comments
 (0)