Fixes #253 properly; logs #254 and #255 in CHANGES

This commit is contained in:
Sean Corfield 2020-03-06 09:42:51 -08:00
parent 7f0af8e4f0
commit 8784a104fb
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
## 0.9.10 -- unreleased
* Fix #254 #255 by adding support for `except`. (@ted-coakley-otm)
* Fix #253 properly by supporting `false` as well. (@ted-coakley-otm)
## 0.9.9
* Fix #253 by supporting non-sequential join expressions.

View file

@ -545,7 +545,7 @@
(str (when type
(str (upper-case (name type)) " "))
"JOIN " (to-sql table)
(when pred
(when (some? pred)
(if (and (sequential? pred) (= :using (first pred)))
(str " USING (" (->> pred rest (map quote-identifier) comma-join) ")")
(str " ON " (format-predicate* pred))))))