X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=tests%2Ftest-fddl.lisp;h=98cd21601d13b73ce54105526dfa0b6f2efcbaef;hp=e231592c82610d5368c3607984c217b875415de5;hb=a4097e19c5157e87b9991549bc44f3ef598aeb90;hpb=db9892632e6eb7869aea7a94c16b523a82de1501 diff --git a/tests/test-fddl.lisp b/tests/test-fddl.lisp index e231592..98cd216 100644 --- a/tests/test-fddl.lisp +++ b/tests/test-fddl.lisp @@ -176,24 +176,24 @@ ;; test list-table-indexes (deftest :fddl/index/3 (progn - (clsql:create-index [bar] :on [employee] :attributes - '([last-name]) :unique nil) - (clsql:create-index [foo] :on [employee] :attributes - '([first-name]) :unique nil) + (clsql:execute-command "CREATE TABLE I3TEST (a char(10), b integer)") + (clsql:create-index [bar] :on [i3test] :attributes + '([a]) :unique t) + (clsql:create-index [foo] :on [i3test] :attributes + '([b]) :unique nil) (values (sort (mapcar #'string-downcase - (clsql:list-table-indexes [employee] :owner *test-database-user*)) + (clsql:list-table-indexes [i3test] :owner *test-database-user*)) #'string-lessp) (sort (clsql:list-table-indexes [company] :owner *test-database-user*) #'string-lessp) (progn - (clsql:drop-index [bar] :on [employee]) - (clsql:drop-index [foo] :on [employee]) + (clsql:drop-index [bar] :on [i3test]) + (clsql:drop-index [foo] :on [i3test]) t))) - ("bar" "foo") nil t) ;; create an sequence, test for existence, drop it and test again