X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-fdml.lisp;h=8f9fd3f63980c88fcd0e7b35a80ddb8b70125636;hb=026988a3144e3ed7f48552b5567c34448fef51bc;hp=0286b2d807a0034efcb6831b7f1a9d98f291f00c;hpb=8a8ee2d7d791b7a3efaed06420802a925d16fca3;p=clsql.git diff --git a/tests/test-fdml.lisp b/tests/test-fdml.lisp index 0286b2d..8f9fd3f 100644 --- a/tests/test-fdml.lisp +++ b/tests/test-fdml.lisp @@ -356,7 +356,7 @@ ("Vlad" "Jose" "Leon" "Niki" "Leon" "Yuri" "Kons" "Mikh" "Bori" "Vlad")) (deftest :fdml/select/22 - (clsql:select [\|\| [first-name] " " [last-name]] :from [employee] + (clsql:select [|| [first-name] " " [last-name]] :from [employee] :flatp t :order-by [emplid] :field-names nil) ("Vladamir Lenin" "Josef Stalin" "Leon Trotsky" "Nikita Kruschev" "Leonid Brezhnev" "Yuri Andropov" "Konstantin Chernenko" "Mikhail Gorbachev" @@ -374,6 +374,14 @@ ("Boris" "Josef" "Konstantin" "Leon" "Leonid" "Mikhail" "Nikita" "Vladamir" "Yuri")) +(deftest :fdml/select/25 + (clsql:select [first-name] :from "employee" :flatp t :distinct t + :field-names nil + :result-types nil + :order-by [first-name]) + ("Boris" "Josef" "Konstantin" "Leon" "Leonid" "Mikhail" "Nikita" "Vladamir" + "Yuri")) + ;(deftest :fdml/select/11 ; (clsql:select [emplid] :from [employee] ; :where [= [emplid] [any [select [companyid] :from [company]]]]