X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=base%2Fdatabase.lisp;h=a7313ebc62fd62b25ea63dcffa6dcea5bada5b18;hb=67e6b9eaab9c9bcf8b57cbd476581437e4876b26;hp=78b6faafa2867d7846eeef96675b06e8e0e4d3e1;hpb=d68d59f99911564ac2af867561fefef107cb14e8;p=clsql.git diff --git a/base/database.lisp b/base/database.lisp index 78b6faa..a7313eb 100644 --- a/base/database.lisp +++ b/base/database.lisp @@ -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))