Fix compiler error

This commit is contained in:
Gwendal Roué committed 2017-10-07 07:41:17 +02:00
1 parent 4995b5bb8c
commit fb8c68f5e0
1 file changed
+5 -2
@@ -36,14 +36,17 @@ class TruncateOptimizationTests: GRDBTestCase {
return true
}
#if SQLITE_ENABLE_PREUPDATE_HOOK
func databaseWillChange(with event: DatabasePreUpdateEvent) { }
#endif
func databaseDidChange(with event: DatabaseEvent) {
if case .delete = event.kind {
deletionEvents[event.tableName, default: 0] += 1
}
}
func databaseWillCommit() throws {
}
func databaseWillCommit() throws { }
func databaseDidCommit(_ db: Database) {
if !deletionEvents.isEmpty {