File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 3.4.8
4+
5+ - Fix: Don't ignore de pool resource ` close ` call when using foce.
6+
37## 3.4.7
48
59- Implemented ` Pool.close(force: true) ` (using [ davidmartos96] ( https://github.com/davidmartos96 ) 's [ #397 ] ( https://github.com/isoos/postgresql-dart/pull/397 ) as baseline).
Original file line number Diff line number Diff line change @@ -282,10 +282,12 @@ class _PoolConnection implements Connection {
282282
283283 @override
284284 Future <void > close ({bool force = false }) async {
285- // Don't forward the close call, the underlying connection should be re-used
285+ // Don't forward the close call unless forcing. The underlying connection should be re-used
286286 // when another pool connection is requested.
287287
288- // TODO: Implement force close.
288+ if (force) {
289+ await _connection.close (force: force);
290+ }
289291 }
290292
291293 @override
Original file line number Diff line number Diff line change 11name : postgres
22description : PostgreSQL database driver. Supports statement reuse and binary protocol and connection pooling.
3- version : 3.4.7
3+ version : 3.4.8
44homepage : https://github.com/isoos/postgresql-dart
55topics :
66 - sql
You can’t perform that action at this time.
0 commit comments