remove trailing undo barrier on end

This commit is contained in:
Damien Elmes 2009-03-14 05:23:59 +09:00
parent 95447a23ec
commit 52cfef6e6c

View file

@ -2108,6 +2108,9 @@ insert into undoLog values (null, 'insert into %(t)s (rowid""" % {'t': table}
return return
self.s.flush() self.s.flush()
end = self._latestUndoRow() end = self._latestUndoRow()
while self.undoStack[-1] is None:
# strip off barrier
self.undoStack.pop()
self.undoStack[-1][2] = end self.undoStack[-1][2] = end
if self.undoStack[-1][1] == self.undoStack[-1][2]: if self.undoStack[-1][1] == self.undoStack[-1][2]:
self.undoStack.pop() self.undoStack.pop()