ensure the sqlite database name is a string (and not a pathname)
authorRyan Davis <ryan@acceleration.net>
Thu, 30 Aug 2012 20:18:53 +0000 (16:18 -0400)
committerRyan Davis <ryan@acceleration.net>
Thu, 30 Aug 2012 20:18:53 +0000 (16:18 -0400)
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)