count-distinct fn handler
This commit is contained in:
parent
49f723a4bf
commit
28ca0add97
1 changed files with 3 additions and 0 deletions
|
|
@ -60,6 +60,9 @@
|
||||||
(paren-wrap (string/join (str " " op-upper " ") args))
|
(paren-wrap (string/join (str " " op-upper " ") args))
|
||||||
(str op-upper (paren-wrap (comma-join args))))))
|
(str op-upper (paren-wrap (comma-join args))))))
|
||||||
|
|
||||||
|
(defmethod fn-handler "count-distinct" [_ & args]
|
||||||
|
(str "COUNT(DISTINCT " (comma-join (map to-sql args)) ")"))
|
||||||
|
|
||||||
(defmethod fn-handler "=" [_ a b & more]
|
(defmethod fn-handler "=" [_ a b & more]
|
||||||
(if (seq more)
|
(if (seq more)
|
||||||
(apply expand-binary-ops "=" a b more)
|
(apply expand-binary-ops "=" a b more)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue