quoting of AS clauses should not be splitted on "."
quoting of AS clauses should not be splitted on "."
This commit is contained in:
parent
0a5eaedd9b
commit
9eb87987ed
1 changed files with 7 additions and 0 deletions
|
|
@ -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))))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue