From 63add4df3ba930d4b2dd33872a32a414636e0fb7 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sun, 14 Feb 2021 14:21:54 -0800 Subject: [PATCH] Clean up differences code --- doc/differences-from-1-x.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/differences-from-1-x.md b/doc/differences-from-1-x.md index b591f79..ded25b3 100644 --- a/doc/differences-from-1-x.md +++ b/doc/differences-from-1-x.md @@ -136,11 +136,11 @@ it should have been a function, and in 2.x it is: ```clojure ;; 1.x: EXISTS should never have been implemented as SQL syntax: it's an operator! ;; (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: 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