diff --git a/test/honeysql/core_test.clj b/test/honeysql/core_test.clj index cea3b31..7de548b 100644 --- a/test/honeysql/core_test.clj +++ b/test/honeysql/core_test.clj @@ -127,3 +127,10 @@ :from [:customers] :where [:in :id :?ids]} {:ids values}))))))) + +(deftest test-quoting + (testing ":quoting :ansi" + (is (= ["SELECT \"b\".\"bla\" AS \"bla.bla\", \"b\".\"bla\" AS \"blu.blu\" FROM \"baz\" \"b\"" ] + (-> (select [:b.bla :bla.bla] [:b.bla "blu.blu"]) + (from [:baz :b]) + (sql/format :quoting :ansi))))))