Issue #61: add savepoint sanity check

This commit is contained in:
Gwendal Roué committed 2016-05-28 20:39:02 +02:00
1 parent 4581850b05
commit ee7f505cde
1 file changed
+1
+1
View File
@@ -1605,6 +1605,7 @@ class SavePointStack {
if let savepoint = savepoints.last {
events.removeLast(events.count - savepoint.index)
}
assert(!savepoints.isEmpty || events.isEmpty)
}
// https://www.sqlite.org/lang_savepoint.html