Skip to content

Commit 6069cfa

Browse files
committed
rm extra comment
1 parent 997b8cb commit 6069cfa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sql/types/enum.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ func (t EnumType) Convert(ctx context.Context, v interface{}) (interface{}, sql.
219219
// isStrictMode checks if STRICT_TRANS_TABLES or STRICT_ALL_TABLES is enabled
220220
func (t EnumType) isStrictMode(ctx context.Context) bool {
221221
if sqlCtx, ok := ctx.(*sql.Context); ok {
222-
// Try the direct context method first
223222
sysVal, err := sqlCtx.GetSessionVariable(sqlCtx, "sql_mode")
224223
if err == nil {
225224
if sqlMode, ok := sysVal.(string); ok {

0 commit comments

Comments
 (0)