Release 0.9.9 fixes #253
This commit is contained in:
parent
ed20b39056
commit
9fb3d42660
5 changed files with 14 additions and 3 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 0.9.9
|
||||||
|
|
||||||
|
* Fix #253 by supporting non-sequential join expressions.
|
||||||
|
|
||||||
## 0.9.8
|
## 0.9.8
|
||||||
|
|
||||||
* Fix #249 by adding `honeysql.format/*namespace-as-table?*` and `:namespace-as-table?` option to `format`. (@seancorfield)
|
* Fix #249 by adding `honeysql.format/*namespace-as-table?*` and `:namespace-as-table?` option to `format`. (@seancorfield)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@honeysql/honeysql",
|
"name": "@honeysql/honeysql",
|
||||||
"version": "0.9.8",
|
"version": "0.9.9",
|
||||||
"license": "EPL-1.0",
|
"license": "EPL-1.0",
|
||||||
"homepage": "https://github.com/jkk/honeysql",
|
"homepage": "https://github.com/jkk/honeysql",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
(defproject honeysql "0.9.8"
|
(defproject honeysql "0.9.9"
|
||||||
:description "SQL as Clojure data structures"
|
:description "SQL as Clojure data structures"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
|
|
|
||||||
|
|
@ -545,7 +545,7 @@
|
||||||
(str (upper-case (name type)) " "))
|
(str (upper-case (name type)) " "))
|
||||||
"JOIN " (to-sql table)
|
"JOIN " (to-sql table)
|
||||||
(when pred
|
(when pred
|
||||||
(if (= :using (first pred))
|
(if (and (sequential? pred) (= :using (first pred)))
|
||||||
(str " USING (" (->> pred rest (map quote-identifier) comma-join) ")")
|
(str " USING (" (->> pred rest (map quote-identifier) comma-join) ")")
|
||||||
(str " ON " (format-predicate* pred))))))
|
(str " ON " (format-predicate* pred))))))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -285,3 +285,10 @@
|
||||||
(java.util.Locale/setDefault original-locale)))))]
|
(java.util.Locale/setDefault original-locale)))))]
|
||||||
(is (= (format-with-locale "en")
|
(is (= (format-with-locale "en")
|
||||||
(format-with-locale "tr"))))))
|
(format-with-locale "tr"))))))
|
||||||
|
|
||||||
|
(deftest join-on-true-253
|
||||||
|
;; used to work on honeysql 0.9.2; broke in 0.9.3
|
||||||
|
(is (= ["SELECT foo FROM bar INNER JOIN table t ON TRUE"]
|
||||||
|
(format {:select [:foo]
|
||||||
|
:from [:bar]
|
||||||
|
:join [[:table :t] true]}))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue