Commit e69ff8c
Fix connection leak in check_database_connection
Only check session.connection().invalidated when there's an existing
transaction. This avoids checking out a new connection from the pool
that would never be returned, causing "too many clients" errors during
integration tests.
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 5f458da commit e69ff8c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments