vfmt: fix eating of sql x { ... limit 1 }
parent
fa867578bc
commit
9814497b91
|
@ -47,9 +47,8 @@ fn (mut p Parser) sql_expr() ast.Expr {
|
|||
p.check_name() // `limit`
|
||||
if p.tok.kind == .number && p.tok.lit == '1' {
|
||||
query_one = true
|
||||
} else {
|
||||
has_limit = true
|
||||
}
|
||||
has_limit = true
|
||||
limit_expr = p.expr(0)
|
||||
}
|
||||
if p.tok.kind == .name && p.tok.lit == 'offset' {
|
||||
|
|
Loading…
Reference in New Issue