]> git.ipfire.org Git - thirdparty/psycopg.git/commit
refactor: drop superfluous _rowcount reset
authorDenis Laxalde <denis@laxalde.org>
Sun, 8 Jan 2023 14:48:38 +0000 (15:48 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 9 Jan 2023 17:44:48 +0000 (17:44 +0000)
commit93f1840651176406c6bf9bc16280124a78228eb4
tree786deee6c37be6070b45de05b7bc6a972c07916c
parentcc42d7fa5fa1ab1af56d255c9402acf3c70690e6
refactor: drop superfluous _rowcount reset

In BaseCursor._set_results_from_pipeline() we were resetting _rowcount
if negative. This is superfluous as this code is reached when coming
from _executemany_gen_pipeline() in which we already do
'self._rowcount = 0' early on.
psycopg/psycopg/cursor.py