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:
@ -145,6 +145,7 @@ fn (mut g Gen) sql_select_expr(node ast.SqlExpr) {
|
|||||||
}
|
}
|
||||||
if node.has_limit {
|
if node.has_limit {
|
||||||
g.write(' LIMIT ')
|
g.write(' LIMIT ')
|
||||||
|
g.sql_side = .right
|
||||||
g.expr_to_sql(node.limit_expr)
|
g.expr_to_sql(node.limit_expr)
|
||||||
}
|
}
|
||||||
if node.has_offset {
|
if node.has_offset {
|
||||||
|
Reference in New Issue
Block a user