Mercurial > p > roundup > code
comparison roundup/backends/back_sqlite.py @ 1492:2fc7d4a8c9e7
fixed sqlite rollback/caching bug [SF#689383]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 06 Mar 2003 06:03:51 +0000 |
| parents | 80d27b7d6db5 |
| children | 94e430ad4fdb |
comparison
equal
deleted
inserted
replaced
| 1490:0638abfa13ab | 1492:2fc7d4a8c9e7 |
|---|---|
| 1 # $Id: back_sqlite.py,v 1.8 2002-12-12 09:31:04 richard Exp $ | 1 # $Id: back_sqlite.py,v 1.9 2003-03-06 06:03:51 richard Exp $ |
| 2 __doc__ = ''' | 2 __doc__ = ''' |
| 3 See https://pysqlite.sourceforge.net/ for pysqlite info | 3 See https://pysqlite.sourceforge.net/ for pysqlite info |
| 4 ''' | 4 ''' |
| 5 import base64, marshal | 5 import base64, marshal |
| 6 from roundup.backends.rdbms_common import * | 6 from roundup.backends.rdbms_common import * |
| 75 for method, args in self.transactions: | 75 for method, args in self.transactions: |
| 76 # delete temporary files | 76 # delete temporary files |
| 77 if method == self.doStoreFile: | 77 if method == self.doStoreFile: |
| 78 self.rollbackStoreFile(*args) | 78 self.rollbackStoreFile(*args) |
| 79 self.transactions = [] | 79 self.transactions = [] |
| 80 | |
| 81 # clear the cache | |
| 82 self.clearCache() | |
| 80 | 83 |
| 81 def __repr__(self): | 84 def __repr__(self): |
| 82 return '<roundlite 0x%x>'%id(self) | 85 return '<roundlite 0x%x>'%id(self) |
| 83 | 86 |
| 84 def sql_fetchone(self): | 87 def sql_fetchone(self): |
