Skip to content
Prev Previous commit
Next Next commit
add comment
  • Loading branch information
denrase committed Jan 15, 2024
commit 436e7f85c3f5f8be8e9ee6dd9c915c3d822eb450
2 changes: 2 additions & 0 deletions sqflite/lib/src/sentry_database.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ class SentryDatabase extends SentryDatabaseExecutor implements Database {
// ignore: return_of_invalid_type
return (_database as dynamic).readTransaction(action);
} on NoSuchMethodError catch (_) {
// The `readTransaction` does not exists on sqflite version < 2.5.0+2.
// Fallback to transaction instead.
return transaction(action);
}
}
Expand Down