]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: don't forbid all PQexec queries in client-side cursors
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 12 May 2022 21:47:46 +0000 (23:47 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 15 May 2022 09:15:30 +0000 (11:15 +0200)
commit70a3e00c676c8f57d747ce9b4c0629fcd5d3e613
tree1aeb68223a257c7e6ea1a7f3935c194f85618c12
parent79df885340f0d9c437fd8fa9838b78136ab68bce
fix: don't forbid all PQexec queries in client-side cursors

We can still use PQexecParams with an empty list of parameters. This has
advantages, such as the possibility of implementing stream(), and less
faffing with differences between Cursor and ClientCursor.
psycopg/psycopg/client_cursor.py
psycopg/psycopg/cursor.py
tests/test_client_cursor.py
tests/test_client_cursor_async.py