Skip to content

Commit

Permalink
Fixed bug when setting update_hook to null twice (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackd authored Nov 25, 2024
1 parent 62bcb24 commit 79770f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlite3/lib/src/ffi/bindings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ final class FfiDatabase extends RawSqliteDatabase {
final previous = _installedUpdateHook;

if (hook == null) {
_installedUpdateHook = null;
bindings.bindings.sqlite3_update_hook(db, nullPtr(), nullPtr());
} else {
final native = _installedUpdateHook = hook.toNative();
Expand Down

0 comments on commit 79770f3

Please sign in to comment.