X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Ftest-fdml.lisp;h=0fbcb17a9756b6695f46851bc20ae2b09d1679e9;hb=215ec41559dda52d46539d48a0aa390811c2423c;hp=aa887770e3fd250e2052da2445ad2d5e1c060c40;hpb=cb677ee3bb1416762ef2efa767e10d87374d81c0;p=clsql.git diff --git a/tests/test-fdml.lisp b/tests/test-fdml.lisp index aa88777..0fbcb17 100644 --- a/tests/test-fdml.lisp +++ b/tests/test-fdml.lisp @@ -373,8 +373,11 @@ ("Vlad" "Jose" "Leon" "Niki" "Leon" "Yuri" "Kons" "Mikh" "Bori" "Vlad")) (deftest :fdml/select/22 - (clsql:select [|| [first-name] " " [last-name]] :from [employee] - :flatp t :order-by [emplid] :field-names nil) + (case *test-database-underlying-type* + (:mssql (clsql:select [+ [first-name] " " [last-name]] :from [employee] + :flatp t :order-by [emplid] :field-names nil)) + (t (clsql:select [|| [first-name] " " [last-name]] :from [employee] + :flatp t :order-by [emplid] :field-names nil))) ("Vladimir Lenin" "Josef Stalin" "Leon Trotsky" "Nikita Kruschev" "Leonid Brezhnev" "Yuri Andropov" "Konstantin Chernenko" "Mikhail Gorbachev" "Boris Yeltsin" "Vladimir Putin")) @@ -492,6 +495,23 @@ "foo\\bar\\baz" "foo\\bar\\baz" "foo\\bar\\baz" "foo\\bar\\baz" "foo\\bar\\baz" "foo\\bar\\baz")) +(deftest :fdml/select/37 + (clsql:select [emplid] :from [employee] + :order-by [emplid] + :limit 5 + :field-names nil + :flatp t) + (1 2 3 4 5)) + +(deftest :fdml/select/38 + (clsql:select [emplid] :from [employee] + :order-by [emplid] + :limit 5 + :offset 3 + :field-names nil + :flatp t) + (4 5 6 7 8)) + (deftest :fdml/do-query/1 (let ((result '())) (clsql:do-query ((name) [select [last-name] :from [employee]