r8914: rework test suites
[clsql.git] / base / database.lisp
index 78b6faafa2867d7846eeef96675b06e8e0e4d3e1..a7313ebc62fd62b25ea63dcffa6dcea5bada5b18 100644 (file)
@@ -81,6 +81,10 @@ connection.  If make-default is true, then *default-database* is set
 to the new connection, otherwise *default-database is not changed. If
 pool is t the connection will be taken from the general pool, if pool
 is a conn-pool object the connection will be taken from this pool."
+
+  (when (stringp connection-spec)
+    (setq connection-spec (string-to-list-connection-spec connection-spec)))
+  
   (if pool
       (acquire-from-pool connection-spec database-type pool)
       (let* ((db-name (database-name-from-spec connection-spec database-type))