diff --git a/extras/drift_postgres/lib/src/pg_database.dart b/extras/drift_postgres/lib/src/pg_database.dart index 7190742b7..af2c6689f 100644 --- a/extras/drift_postgres/lib/src/pg_database.dart +++ b/extras/drift_postgres/lib/src/pg_database.dart @@ -54,7 +54,8 @@ class _PgDelegate extends DatabaseDelegate { late DbVersionDelegate versionDelegate; @override - Future get isOpen => Future.value(_openedSession != null); + Future get isOpen => + Future.value(_openedSession != null && _openedSession!.isOpen); @override Future open(QueryExecutorUser user) async {