This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erlendaasland
Recipients erlendaasland
Date 2022-01-03.21:14:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641244467.23.0.820858977306.issue46249@roundup.psfhosted.org>
In-reply-to
Content
The query loop in _pysqlite_query_execute() is run only once for ordinary execute()'s, but multiple times for executemany(). We use the 'multiple' variable to differ between the two execute methods; for execute(), multiple is false, for executemany(), multiple is true. At the end of the loop, the 'lastrowid' connection attribute is set, if multiple is false. We can safely move this part out of the loop; it is irrelevant for executemany(), and it will only be run once for execute().
History
Date User Action Args
2022-01-03 21:14:27erlendaaslandsetrecipients: + erlendaasland
2022-01-03 21:14:27erlendaaslandsetmessageid: <1641244467.23.0.820858977306.issue46249@roundup.psfhosted.org>
2022-01-03 21:14:27erlendaaslandlinkissue46249 messages
2022-01-03 21:14:27erlendaaslandcreate