Changes between Version 2 and Version 3 of Ticket #32403, comment 2
- Timestamp:
- Feb 1, 2021, 3:05:56 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32403, comment 2
v2 v3 21 21 I found a problem. The problem is in [these lines](https://github.com/django/django/blob/f9cfd346f0222d86bfbac26ef5455806965bae6b/django/db/backends/postgresql/base.py#L324-L325). If I have one connection and test expression in if return false then function just return without reraise exception. And `contextmanager` raises error `RuntimeError: generator didn't yield` 22 22 23 Also, if I have more than two connection configurations with different `NAME`, this code will try to process only one next configuration, and if it is incorrect, it will throw an exception without trying to check the next connection.