Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refact(sqlite): more expecific variable name
  • Loading branch information
giuliano-macedo committed Feb 25, 2025
commit 66cf32b2d8b458174f214348b1b346142314e3e0
6 changes: 3 additions & 3 deletions internal/engine/sqlite/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -1073,13 +1073,13 @@ func (c *cc) convertBetweenExpr(n *parser.Expr_betweenContext) ast.Node {
}

func (c *cc) convertCastExpr(n *parser.Expr_castContext) ast.Node {
name := n.Type_name().GetText()
typeName := n.Type_name().GetText()
return &ast.TypeCast{
Arg: c.convert(n.Expr()),
TypeName: &ast.TypeName{
Name: name,
Name: typeName,
Names: &ast.List{Items: []ast.Node{
&ast.String{Str: name},
&ast.String{Str: typeName},
}},
ArrayBounds: &ast.List{},
},
Expand Down