1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
Casper Kuethe 2023-07-30 22:49:14 +02:00 committed by Delyan Angelov
parent 4ac1beda55
commit cbd0e7bea0
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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'