r8996: support memory database in probe-database
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 13 Apr 2004 17:19:35 +0000 (17:19 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 13 Apr 2004 17:19:35 +0000 (17:19 +0000)
ChangeLog
db-sqlite/sqlite-sql.lisp

index 684b5893f5e4aa391a6e9c99bcf59988f214087b..1bbbb265690b6978173972d56fe12633e74381cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
        * Version 2.6.12
        * base/transactions.lisp: Add quote for macro
        expansion of WITH-TRANSACTIONS [Time Howe]
+       * db-sqlite/sqlite-sql.lisp: Support memory database
+       in database-probe [Ng Pheng Siong]
 
 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
        * Version 2.6.11
index bc93bb8f53d770c56386e10ef8ff367602518de6..1f3c15855ffdbdd1b16c8ae063ec2fe8488bce40 100644 (file)
 
 (defmethod database-probe (connection-spec (type (eql :sqlite)))
   (destructuring-bind (name) connection-spec
-    ;; TODO: Add a test that this file is a real sqlite database 
-    (and (probe-file name) t)))
+    ;; TODO: Add a test that this file is a real sqlite database
+    (or (string-equal ":memory:" name)
+       (and (probe-file name) t))))
+