remove accidentally duped test
Signed-off-by: Sean Corfield <sean@corfield.org>
This commit is contained in:
parent
92e4e16b45
commit
3906aa53c0
1 changed files with 0 additions and 30 deletions
|
|
@ -1206,36 +1206,6 @@ ORDER BY id = ? DESC
|
||||||
((get-in (y z) *)))}
|
((get-in (y z) *)))}
|
||||||
{:dialect :mysql})))))
|
{:dialect :mysql})))))
|
||||||
|
|
||||||
(deftest issue-570-snowflake-dot-selection
|
|
||||||
(testing "basic colon selection"
|
|
||||||
(is (= ["SELECT a:b, c:d, a:d.x, a:d.x.y"]
|
|
||||||
(let [t :a c :d]
|
|
||||||
(sut/format {:select [[[:.:. t :b]] [[:.:. :c c]]
|
|
||||||
[[:.:. t c :x]] [[:.:. t c :x :y]]]}))))
|
|
||||||
(is (= ["SELECT [a]:[b], [c]:[d], [a]:[d].[x]"]
|
|
||||||
(let [t :a c :d]
|
|
||||||
(sut/format {:select [[[:.:. t :b]] [[:.:. :c c]] [[:.:. t c :x]]]}
|
|
||||||
{:dialect :sqlserver})))))
|
|
||||||
(testing "basic field selection from composite"
|
|
||||||
(is (= ["SELECT (v):*, (w):x, (Y(z)):*"]
|
|
||||||
(sut/format '{select (((.:. (nest v) *))
|
|
||||||
((.:. (nest w) x))
|
|
||||||
((.:. (nest (y z)) *)))})))
|
|
||||||
(is (= ["SELECT (`v`):*, (`w`):`x`, (Y(`z`)):*"]
|
|
||||||
(sut/format '{select (((.:. (nest v) *))
|
|
||||||
((.:. (nest w) x))
|
|
||||||
((.:. (nest (y z)) *)))}
|
|
||||||
{:dialect :mysql})))
|
|
||||||
(is (= ["SELECT (v):*, (w):x, (Y(z)):*"]
|
|
||||||
(sut/format '{select (((get-in v *))
|
|
||||||
((get-in w x))
|
|
||||||
((get-in (y z) *)))})))
|
|
||||||
(is (= ["SELECT (`v`):*, (`w`):`x`, (Y(`z`)):*"]
|
|
||||||
(sut/format '{select (((get-in v *))
|
|
||||||
((get-in w x))
|
|
||||||
((get-in (y z) *)))}
|
|
||||||
{:dialect :mysql})))))
|
|
||||||
|
|
||||||
(deftest issue-570-snowflake-dot-selection
|
(deftest issue-570-snowflake-dot-selection
|
||||||
(testing "basic colon selection"
|
(testing "basic colon selection"
|
||||||
(is (= ["SELECT a:b, c:d, a:d.x, a:d.x.y"]
|
(is (= ["SELECT a:b, c:d, a:d.x, a:d.x.y"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue