1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

orm: fix LIMIT var as well

This commit is contained in:
Delyan Angelov 2020-07-02 23:29:29 +03:00
parent 421b6d4a80
commit 7004f74b71

View File

@ -145,6 +145,7 @@ fn (mut g Gen) sql_select_expr(node ast.SqlExpr) {
}
if node.has_limit {
g.write(' LIMIT ')
g.sql_side = .right
g.expr_to_sql(node.limit_expr)
}
if node.has_offset {