From 564ee6858a22c045108ff8526a348a8d6cf1f7a6 Mon Sep 17 00:00:00 2001 From: lysu Date: Tue, 17 Mar 2020 15:23:24 +0800 Subject: [PATCH] add require secure transport error (#779) --- mysql/errcode.go | 1 + mysql/errname.go | 1 + 2 files changed, 2 insertions(+) diff --git a/mysql/errcode.go b/mysql/errcode.go index 38bace97e..a39252d93 100644 --- a/mysql/errcode.go +++ b/mysql/errcode.go @@ -898,6 +898,7 @@ const ( ErrInvalidJSONContainsPathType = 3150 ErrJSONUsedAsKey = 3152 ErrInvalidJSONPathArrayCell = 3165 + ErrSecureTransportRequired = 3159 ErrBadUser = 3162 ErrRoleNotGranted = 3530 ErrLockAcquireFailAndNoWaitSet = 3572 diff --git a/mysql/errname.go b/mysql/errname.go index c4ecc5539..12f724fe1 100644 --- a/mysql/errname.go +++ b/mysql/errname.go @@ -915,6 +915,7 @@ var MySQLErrName = map[uint16]string{ ErrWindowNoGroupOrderUnused: "ASC or DESC with GROUP BY isn't allowed with window functions; put ASC or DESC in ORDER BY", ErrWindowExplainJson: "To get information about window functions use EXPLAIN FORMAT=JSON", ErrWindowFunctionIgnoresFrame: "Window function '%s' ignores the frame clause of window '%s' and aggregates over the whole partition", + ErrSecureTransportRequired: "Connections using insecure transport are prohibited while --require_secure_transport=ON.", ErrRoleNotGranted: "%s is is not granted to %s", ErrMaxExecTimeExceeded: "Query execution was interrupted, max_execution_time exceeded.", ErrLockAcquireFailAndNoWaitSet: "Statement aborted because lock(s) could not be acquired immediately and NOWAIT is set.",