We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d24261 commit 58de813Copy full SHA for 58de813
CHANGELOG.md
@@ -1,5 +1,5 @@
1
### 1.5.0
2
-
+- feat: #133: Fix simultaneous queries error when iteration is interrupted
3
- feat: #129: Add `toYearWeek` datetime functionality
4
5
### 1.4.0
tests/backends/clickhouse/test_driver.py
@@ -30,6 +30,11 @@ def setUpTestData(cls):
30
)
31
32
def test_connection_not_reused_when_iteration_interrupted(self):
33
+ """
34
+ This test demonstrates that if a queryset is iterated over and the
35
+ iteration is interrupted (e.g. via a break statement), the connection
36
+ used for that iteration is disconnected and not returned to the pool.
37
38
pool = connection.connection.pool
39
40
connection_count_before = len(pool._pool)
0 commit comments