ensure the sqlite database name is a string (and not a pathname)
[clsql.git] / db-sqlite3 / sqlite3-sql.lisp
index 927716a0c356f01a56861684bec099ce8ad05a04..63e48ec67d6b4860c7d068f60b86283c3e07645c 100644 (file)
@@ -31,7 +31,7 @@
 (defmethod database-name-from-spec (connection-spec
                                     (database-type (eql :sqlite3)))
   (check-sqlite3-connection-spec connection-spec)
-  (first connection-spec))
+  (princ-to-string (first connection-spec)))
 
 (defmethod database-connect (connection-spec (database-type (eql :sqlite3)))
   (check-sqlite3-connection-spec connection-spec)