Version 5.0.2: Add missing slot accessor, make defgenerics match defmethod
[clsql.git] / sql / database.lisp
index d4d1d91e7b15dd7911add8d32f56376e77811d7a..382f552955219276e2ba935f8e194b3156b9f5ea 100644 (file)
@@ -317,7 +317,7 @@ system specified by DATABASE-TYPE."
   (when (typep db 'database)
     (setf (slot-value db 'encoding) encoding)
     (when (eql (slot-value db 'state) :open)
   (when (typep db 'database)
     (setf (slot-value db 'encoding) encoding)
     (when (eql (slot-value db 'state) :open)
-      (case database-type
+      (case (database-type db)
         ;; FIXME: If database object is open then
         ;; send command to SQL engine specifying the character
         ;; encoding for the database
         ;; FIXME: If database object is open then
         ;; send command to SQL engine specifying the character
         ;; encoding for the database