diff --git a/test/honey/sql_test.cljc b/test/honey/sql_test.cljc index ea64448..13eb030 100644 --- a/test/honey/sql_test.cljc +++ b/test/honey/sql_test.cljc @@ -180,6 +180,8 @@ ["WITH query AS NOT MATERIALIZED (SELECT foo FROM bar)"])) (is (= (format {:with [[:query {:select [:foo] :from [:bar]} :kw-1 :kw-2]]}) ["WITH query AS (SELECT foo FROM bar) KW 1 kw_2"])) + (is (= (format {:with-recursive [[:query {:select [:foo] :from [:bar]} :cycle [:a :b :c] :set :d :to [:abs :e] :default 42 :using :x]]}) + ["WITH RECURSIVE query AS (SELECT foo FROM bar) CYCLE a, b, c SET d TO ABS(e) DEFAULT ? USING x" 42])) (is (= (format {:with [[:query1 {:select [:foo] :from [:bar]}] [:query2 {:select [:bar] :from [:quux]}]] :select [:query1.id :query2.name]