diff --git a/vlib/v/checker/orm.v b/vlib/v/checker/orm.v index 324910371a..5455a2a9da 100644 --- a/vlib/v/checker/orm.v +++ b/vlib/v/checker/orm.v @@ -29,7 +29,7 @@ fn (mut c Checker) sql_expr(mut node ast.SqlExpr) ast.Type { if !c.ensure_type_exists(node.table_expr.typ, node.pos) { return ast.void_type } - mut table_sym := c.table.sym(c.unwrap_generic(node.table_expr.typ)) + table_sym := c.table.sym(c.unwrap_generic(node.table_expr.typ)) if !c.check_orm_table_expr_type(node.table_expr) { return ast.void_type diff --git a/vlib/v/parser/orm.v b/vlib/v/parser/orm.v index cf35498507..b22105c077 100644 --- a/vlib/v/parser/orm.v +++ b/vlib/v/parser/orm.v @@ -25,7 +25,7 @@ fn (mut p Parser) sql_expr() ast.Expr { } table_pos := p.tok.pos() - mut table_type := p.parse_type() // `User` + table_type := p.parse_type() // `User` mut where_expr := ast.empty_expr has_where := p.tok.kind == .name && p.tok.lit == 'where'