Support PostgreSQL && array operator

This commit is contained in:
Sean Corfield 2021-05-17 10:40:19 -07:00
parent 5e98454f28
commit 52308d484f
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,8 @@
# Changes
* 2.0.next in progress
* Support PostgreSQL's `&&` operator.
* 2.0.0-rc2 (for testing; 2021-05-10)
* Fix #326 by allowing `ON`/`USING` to be optional and not dropping parameters on the floor.
* Fix #325 by making the `%` function call syntax respect `:quoted true` and/or `:dialect` options, and also allowing for qualified column names. (PR from @lognush)

View file

@ -920,7 +920,7 @@
(def ^:private infix-ops
(-> #{"mod" "and" "or" "xor" "<>" "<=" ">=" "||" "<->"
"like" "not-like" "regexp"
"like" "not-like" "regexp" "&&"
"ilike" "not-ilike" "similar-to" "not-similar-to"
"is" "is-not" "not=" "!=" "regex"}
(into (map str "+-*%|&^=<>"))
@ -931,7 +931,7 @@
(atom)))
(def ^:private op-ignore-nil (atom #{:and :or}))
(def ^:private op-variadic (atom #{:and :or :+ :* :||}))
(def ^:private op-variadic (atom #{:and :or :+ :* :|| :&&}))
(defn- unwrap [x opts]
(if-let [m (meta x)]