Skip to content

Commit 79770f3

Browse files
authored
Fixed bug when setting update_hook to null twice (simolus3#269)
1 parent 62bcb24 commit 79770f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlite3/lib/src/ffi/bindings.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ final class FfiDatabase extends RawSqliteDatabase {
550550
final previous = _installedUpdateHook;
551551

552552
if (hook == null) {
553+
_installedUpdateHook = null;
553554
bindings.bindings.sqlite3_update_hook(db, nullPtr(), nullPtr());
554555
} else {
555556
final native = _installedUpdateHook = hook.toNative();

0 commit comments

Comments
 (0)