dabo Commit
Revision 4730
Date: 2008-11-28 08:26:43 -0800 (Fri, 28 Nov 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4730

Changed:
U   trunk/dabo/db/dbSQLite.py

Log:
The last few changes blocked the ability to create in-memory cursors. This 
corrects that error.


Diff:
Modified: trunk/dabo/db/dbSQLite.py
===================================================================
--- trunk/dabo/db/dbSQLite.py   2008-11-28 14:06:44 UTC (rev 4729)
+++ trunk/dabo/db/dbSQLite.py   2008-11-28 16:26:43 UTC (rev 4730)
@@ -53,7 +53,7 @@
 
                self._dictCursorClass = DictCursor
                pth = os.path.expanduser(connectInfo.Database)
-               if not forceCreate and not dabo.createDbFiles:
+               if not forceCreate and not dabo.createDbFiles and (pth != 
":memory:"):
                        if not os.path.exists(pth):
                                # Database file does not exist; raise an error
                                raise DBFileDoesNotExistException, _("Database 
file '%s' does not exist") % pth




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to