diff --git a/parser/ast/misc.go b/parser/ast/misc.go index bffab842c1b27..dec72d3714eec 100644 --- a/parser/ast/misc.go +++ b/parser/ast/misc.go @@ -1113,7 +1113,7 @@ func (n *UserSpec) EncodedPassword() (string, bool) { } const ( - TslNone = iota + TlsNone = iota Ssl X509 Cipher @@ -1129,7 +1129,7 @@ type TLSOption struct { func (t *TLSOption) Restore(ctx *format.RestoreCtx) error { switch t.Type { - case TslNone: + case TlsNone: ctx.WriteKeyWord("NONE") case Ssl: ctx.WriteKeyWord("SSL") diff --git a/parser/parser.go b/parser/parser.go index f57b39baf0162..4b3488d5e72b9 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -19264,7 +19264,7 @@ yynewstate: case 2150: { t := &ast.TLSOption{ - Type: ast.TslNone, + Type: ast.TlsNone, } parser.yyVAL.item = []*ast.TLSOption{t} } diff --git a/parser/parser.y b/parser/parser.y index 337aa0b0dc373..1fc8e1ba2b02d 100644 --- a/parser/parser.y +++ b/parser/parser.y @@ -11857,7 +11857,7 @@ RequireClause: "REQUIRE" "NONE" { t := &ast.TLSOption{ - Type: ast.TslNone, + Type: ast.TlsNone, } $$ = []*ast.TLSOption{t} }