File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
tests/backends/clickhouse Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
### 1.5.0
2
-
2
+ - feat: # 133 : Fix simultaneous queries error when iteration is interrupted
3
3
- feat: #130 : Add ` distributed_migrations ` database setting to support distributed migration queries.
4
4
- feat: #129 : Add ` toYearWeek ` datetime functionality
5
5
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ def setUpTestData(cls):
30
30
)
31
31
32
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
+ """
33
38
pool = connection .connection .pool
34
39
35
40
connection_count_before = len (pool ._pool )
You can’t perform that action at this time.
0 commit comments