Clean up differences code

This commit is contained in:
Sean Corfield 2021-02-14 14:21:54 -08:00
parent 2af7d0b690
commit 63add4df3b

View file

@ -136,11 +136,11 @@ it should have been a function, and in 2.x it is:
```clojure ```clojure
;; 1.x: EXISTS should never have been implemented as SQL syntax: it's an operator! ;; 1.x: EXISTS should never have been implemented as SQL syntax: it's an operator!
;; (sq/format {:exists {:select [:a] :from [:foo]}}) ;; (sq/format {:exists {:select [:a] :from [:foo]}})
;;=> ["EXISTS (SELECT a FROM foo)"])) ;;=> ["EXISTS (SELECT a FROM foo)"]
;; 2.x: select function call with an alias: ;; 2.x: select function call with an alias:
user=> (sql/format {:select [[[:exists {:select [:a] :from [:foo]}] :x]]}) user=> (sql/format {:select [[[:exists {:select [:a] :from [:foo]}] :x]]})
["SELECT EXISTS (SELECT a FROM foo) AS x"])) ["SELECT EXISTS (SELECT a FROM foo) AS x"]
``` ```
## Extensibility ## Extensibility