mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Issue #61: add savepoint sanity check
This commit is contained in:
1 parent
4581850b05
commit
ee7f505cde
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user