Skip to content

Commit

Permalink
evalengine: Use the right unknown type to initialize (#14313)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink authored Oct 19, 2023
1 parent 8cade46 commit 8dc16af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/vtgate/evalengine/translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (ast *astCompiler) translateBindVar(arg *sqlparser.Argument) (Expr, error)
}

func (ast *astCompiler) translateColOffset(col *sqlparser.Offset) (Expr, error) {
var typ Type
typ := UnknownType()
if ast.cfg.ResolveType != nil {
typ, _ = ast.cfg.ResolveType(col.Original)
}
Expand All @@ -216,7 +216,7 @@ func (ast *astCompiler) translateColName(colname *sqlparser.ColName) (Expr, erro
if err != nil {
return nil, err
}
var typ Type
typ := UnknownType()
if ast.cfg.ResolveType != nil {
typ, _ = ast.cfg.ResolveType(colname)
}
Expand Down

0 comments on commit 8dc16af

Please sign in to comment.