X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=tests%2Ftest-init.lisp;h=d78e64ae978c4cdbf8359e83c2b43a46b32028b1;hp=6738c1dfa48910b01a0687f4d3a2c97749fcb9de;hb=2f185bf0167aa5a0be8e82a0c1ee961ca28f1426;hpb=bb245c9d1616927d1302f3f36d3ebbf6a0dd662d diff --git a/tests/test-init.lisp b/tests/test-init.lisp index 6738c1d..d78e64a 100644 --- a/tests/test-init.lisp +++ b/tests/test-init.lisp @@ -182,8 +182,10 @@ (ignore-errors (create-database spec :database-type db-type))) (setf *test-database-type* db-type) - (when (>= (length spec) 3) - (setq *test-database-user* (third spec))) + (setf *test-database-user* + (cond + ((eq :oracle db-type) (second spec)) + ((>= (length spec) 3) (third spec)))) ;; Connect to the database (clsql:connect spec