Skip to content

Commit e678043

Browse files
author
Richard Jones
committed
fixed sqlite rollback/caching bug [SF#689383]
1 parent 5d31a3c commit e678043

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ are given with the most recent entry first.
33

44
2003-??-?? 0.5.7
55
- fixed Interval maths (sf bug 665357)
6+
- fixed sqlite rollback/caching bug (sf bug 689383)
7+
68

79
2003-02-27 0.5.6
810
- fixed templating filter function arguments (sf bug 678911)

roundup/backends/back_sqlite.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_sqlite.py,v 1.8 2002-12-12 09:31:04 richard Exp $
1+
# $Id: back_sqlite.py,v 1.8.2.1 2003-03-06 05:46:57 richard Exp $
22
__doc__ = '''
33
See https://pysqlite.sourceforge.net/ for pysqlite info
44
'''
@@ -78,6 +78,9 @@ def rollback(self):
7878
self.rollbackStoreFile(*args)
7979
self.transactions = []
8080

81+
# clear the cache
82+
self.clearCache()
83+
8184
def __repr__(self):
8285
return '<roundlite 0x%x>'%id(self)
8386

roundup/backends/rdbms_common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.27.2.4 2003-02-27 11:21:02 richard Exp $
1+
# $Id: rdbms_common.py,v 1.27.2.5 2003-03-06 05:46:57 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -849,6 +849,9 @@ def rollback(self):
849849
self.rollbackStoreFile(*args)
850850
self.transactions = []
851851

852+
# clear the cache
853+
self.clearCache()
854+
852855
def doSaveNode(self, classname, nodeid, node):
853856
''' dummy that just generates a reindex event
854857
'''

0 commit comments

Comments
 (0)