mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Improve DatabaseEventPredicate usage with SQLITE_ENABLE_PREUPDATE_HOOK
This commit is contained in:
1 parent
4762f8bb36
commit
4c0cc84c2d
1 file changed
+1
-1
@@ -454,7 +454,7 @@ class DatabaseObservationBroker {
|
||||
|
||||
if savepointStack.isEmpty {
|
||||
// Notify now
|
||||
for statementObservation in statementObservations where statementObservation.predicate.evaluate(event) {
|
||||
for statementObservation in statementObservations where statementObservation.tracksEvent(event) {
|
||||
statementObservation.transactionObservation.databaseWillChange(with: event)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user