quoting of AS clauses should not be splitted on "."

quoting of AS clauses should not be splitted on "."
This commit is contained in:
Starks 2015-07-22 17:14:10 +02:00
parent 0a5eaedd9b
commit 9eb87987ed

View file

@ -127,3 +127,10 @@
:from [:customers] :from [:customers]
:where [:in :id :?ids]} :where [:in :id :?ids]}
{:ids values}))))))) {: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))))))