orm: handle more operators
parent
aec7f2f6c4
commit
9a713ff9b0
|
@ -234,6 +234,10 @@ fn (mut g Gen) expr_to_sql(expr ast.Expr) {
|
|||
.le { g.write(' <= ') }
|
||||
.and { g.write(' and ') }
|
||||
.logical_or { g.write(' or ') }
|
||||
.plus { g.write(' + ') }
|
||||
.minus{ g.write(' - ') }
|
||||
.mul { g.write(' * ') }
|
||||
.div { g.write(' / ') }
|
||||
else {}
|
||||
}
|
||||
g.sql_side = .right
|
||||
|
|
Loading…
Reference in New Issue