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

orm: handle more operators

This commit is contained in:
Alexander Medvednikov 2020-06-25 22:58:28 +02:00
parent aec7f2f6c4
commit 9a713ff9b0

View File

@ -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