Bind *test-database-user* correctly for odbc.
authorNathan Bird <nathan@acceleration.net>
Sat, 23 Jan 2010 19:02:11 +0000 (14:02 -0500)
committerNathan Bird <nathan@acceleration.net>
Tue, 26 Jan 2010 20:49:09 +0000 (15:49 -0500)
per documentation :odbc and :aodbc have their user in the second slot of the connection spec.
This causes a number more tests to fail that used to pass because this variable wasn't right.

tests/test-init.lisp

index 8e1cc48569e3401bd5798acf4cc088015ee2d081..1a8ab66aa2e61608d56b3608aa583f8e8646b461 100644 (file)
@@ -44,7 +44,7 @@
   (setf *test-database-type* db-type)
   (setf *test-database-user*
     (cond
-     ((eq :oracle db-type) (second spec))
+     ((member db-type '(:oracle :odbc :aodbc)) (second spec))
      ((>= (length spec) 3) (third spec))))
 
   ;; Connect to the database