r9427: 22 May 2004 Kevin Rosenberg
[clsql.git] / tests / test-init.lisp
index 6738c1dfa48910b01a0687f4d3a2c97749fcb9de..d78e64ae978c4cdbf8359e83c2b43a46b32028b1 100644 (file)
     (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