Improve DatabaseEventPredicate usage with SQLITE_ENABLE_PREUPDATE_HOOK

This commit is contained in:
Gwendal Roué committed 2023-03-31 08:02:04 +02:00
1 parent 4762f8bb36
commit 4c0cc84c2d
1 file changed
+1 -1
+1 -1
View File
@@ -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 {