r8998: conditionalize shell command for windows
[clsql.git] / db-sqlite / sqlite-sql.lisp
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))))
+