Clean up differences code
This commit is contained in:
parent
2af7d0b690
commit
63add4df3b
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue