]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: always gather the notifications received
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 22 Dec 2024 19:38:58 +0000 (20:38 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 22 Dec 2024 19:38:58 +0000 (20:38 +0100)
commit37a49f8b4b2e69dab935a01648f1193a4c9c7018
tree14c2d983a0d43310f43e02bf60f91aa9571709b9
parent5c91cf509e518f5e1ce79638f480f9b9c2232e8c
fix: always gather the notifications received

Starting to register them after the first call to notifies() is somewhat
weird. We also risk to lose notifications in a case such as:

    conn.execute("listen foo")
    conn.execute("listen bar")
    for n in conn.notifies():
        ...
docs/news.rst
psycopg/psycopg/_connection_base.py
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
tests/test_notify.py
tests/test_notify_async.py