Commit 414742c
authored
Change Postgres connection handling (#811)
## Motivation and Context (Why the change? What's the scenario?)
ArgumentOutOfRangeException when trying to connect to Postgres.
See https://github.com/microsoft/kernel-memory/issues/789
## High level description (Approach, Design)
Change connection handling in `PostgresDbClient` ensuring that
the `NpgsqlDataSource` is disposed only when the work with the
connection is done.1 parent 4843f30 commit 414742c
File tree
3 files changed
+291
-267
lines changed- extensions/Postgres/Postgres
- Internals
3 files changed
+291
-267
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments