Changes between Version 2 and Version 3 of Ticket #32403, comment 2


Ignore:
Timestamp:
Feb 1, 2021, 3:05:56 PM (4 years ago)
Author:
Kazantcev Andrey

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32403, comment 2

    v2 v3  
    2121I 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`
    2222
     23Also, 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.
Back to Top