orm: handle more operators

pull/5505/head
Alexander Medvednikov 2020-06-25 22:58:28 +02:00
parent aec7f2f6c4
commit 9a713ff9b0
1 changed files with 4 additions and 0 deletions

View File

@ -234,6 +234,10 @@ fn (mut g Gen) expr_to_sql(expr ast.Expr) {
.le { g.write(' <= ') } .le { g.write(' <= ') }
.and { g.write(' and ') } .and { g.write(' and ') }
.logical_or { g.write(' or ') } .logical_or { g.write(' or ') }
.plus { g.write(' + ') }
.minus{ g.write(' - ') }
.mul { g.write(' * ') }
.div { g.write(' / ') }
else {} else {}
} }
g.sql_side = .right g.sql_side = .right