From 4777aa8bb10d806c54e2e8b3d74914b4ee242369 Mon Sep 17 00:00:00 2001 From: cfzjywxk Date: Mon, 11 Nov 2019 16:25:37 +0800 Subject: [PATCH] error code for sysvar.go --- mysql/errcode.go | 2 ++ mysql/errname.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mysql/errcode.go b/mysql/errcode.go index 043248a3f..3e045e377 100644 --- a/mysql/errcode.go +++ b/mysql/errcode.go @@ -972,6 +972,8 @@ const ( ErrIndexStateCantNone = 8044 ErrInvalidRecordKey = 8045 ErrColumnStateCantNone = 8046 + ErrUnsupportedValueForVar = 8047 + ErrUnsupportedIsolationLevel = 8048 // TiKV/PD errors. ErrPDServerTimeout = 9001 diff --git a/mysql/errname.go b/mysql/errname.go index bafe820aa..900d64671 100644 --- a/mysql/errname.go +++ b/mysql/errname.go @@ -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",