We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33bdc3c commit b73a8feCopy full SHA for b73a8fe
sql/expression/enum.go
@@ -80,7 +80,7 @@ func (e *EnumToString) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
80
case string:
81
str = v
82
default:
83
- return nil, sql.ErrInvalidType.New(types.Text.String())
+ return nil, sql.ErrInvalidType.New(e.Enum.Type().String())
84
}
85
return str, nil
86
0 commit comments