File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -7690,11 +7690,11 @@ where
76907690 },
76917691 Assertions : []ScriptTestAssertion {
76927692 {
7693- Query : "insert into t values (1, 500)" ,
7693+ Query : "insert into t values (1, 500)" ,
76947694 ExpectedErrStr : "value 500 is not valid for this Enum" ,
76957695 },
76967696 {
7697- Query : "insert into t values (1, -1)" ,
7697+ Query : "insert into t values (1, -1)" ,
76987698 ExpectedErrStr : "value -1 is not valid for this Enum" ,
76997699 },
77007700 },
Original file line number Diff line number Diff line change 44// you may not use this file except in compliance with the License.
55// You may obtain a copy of the License at
66//
7- // http://www.apache.org/licenses/LICENSE-2.0
7+ // http://www.apache.org/licenses/LICENSE-2.0
88//
99// Unless required by applicable law or agreed to in writing, software
1010// distributed under the License is distributed on an "AS IS" BASIS,
@@ -20,7 +20,7 @@ import (
2020
2121// EnumToString is an expression that converts an enum value to a string.
2222type EnumToString struct {
23- Enum sql.Expression
23+ Enum sql.Expression
2424}
2525
2626var _ sql.Expression = (* EnumToString )(nil )
@@ -90,4 +90,4 @@ func (e *EnumToString) String() string {
9090// DebugString implements the sql.Expression interface.
9191func (e * EnumToString ) DebugString () string {
9292 return sql .DebugString (e .Enum )
93- }
93+ }
Original file line number Diff line number Diff line change 1515package planbuilder
1616
1717import (
18+ "strings"
19+
1820 "github.com/dolthub/go-mysql-server/sql/types"
19- "strings"
2021
2122 "github.com/dolthub/go-mysql-server/sql"
2223 "github.com/dolthub/go-mysql-server/sql/expression"
Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ func (t EnumType) At(idx int) (string, bool) {
301301 return "" , false
302302 }
303303 // The elements listed in the column specification are assigned index numbers, beginning with 1.
304- return t .idxToVal [idx - 1 ], true
304+ return t .idxToVal [idx - 1 ], true
305305}
306306
307307// CharacterSet implements EnumType interface.
You can’t perform that action at this time.
0 commit comments