Skip to content

Commit d084238

Browse files
Merge pull request #8 from KainosSoftwareLtd/fix-creating-select-query
join should be before where
2 parents 028853d + 9da8095 commit d084238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/honey.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ select = (res, expr)->
8787
res.push("SELECT")
8888
select_clause(res, expr.select)
8989
from(res, expr.from) if expr.from
90-
where_clause(res, expr.where) if expr.where
9190
join_clause(res, expr.join) if expr.join
91+
where_clause(res, expr.where) if expr.where
9292

9393
if expr.order
9494
order_clause(res, expr.order)

0 commit comments

Comments
 (0)