((or string list)
(let ((db (find-database database :errorp nil)))
(when (null db)
- (if (and database errorp)
+ (if (and database error)
(error 'clsql-generic-error
:message
(format nil "Unable to find database with connection-spec ~A." database))
(when (is-database-open db)
(if force
- (ignore-errors (disconnect db))
- (disconnect db :error nil)))
+ (ignore-errors (disconnect :database db))
+ (disconnect :database db :error nil)))
(connect (connection-spec db))))