orm: fix `LIMIT var` as well
parent
421b6d4a80
commit
7004f74b71
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue