]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Keep results from all queries run through executemany()
authorDenis Laxalde <denis.laxalde@dalibo.com>
Wed, 15 Dec 2021 12:57:31 +0000 (13:57 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 2 Jan 2022 20:07:40 +0000 (21:07 +0100)
commite2372daae73f78a77caeec81768283cc757c20c8
treee106294981ad8ea348968a003ae871d9d7e08ae5
parent229ed109804e92652b50c3f60785a17fd5969377
Keep results from all queries run through executemany()

Instead of overwriting cursor's results at each execution in
executemany() we now accumulate the results of all queries on cursor
state by turning _set_results() into _extend_results(). This way, each
result remains accessible and one can use nextset() to move from one
result to another.
docs/api/cursors.rst
docs/news.rst
psycopg/psycopg/cursor.py
tests/test_cursor.py
tests/test_cursor_async.py