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, lemburg
Date 2022-01-03.23:49:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641253751.15.0.329949671702.issue46249@roundup.psfhosted.org>
In-reply-to
Content
I see that PEP 249 does not define the semantics of lastrowid for executemany(). What's the precedence here, MAL? IMO, it would be nice to be able to fetch the last row id after you've done a 1000 inserts using executemany().

So, another option would be to keep "set-lastrowid" in the query loop, and just remove the condition; we set it every time (but of course only build a PyObject of it when the loop is done).
History
Date User Action Args
2022-01-03 23:49:11erlendaaslandsetrecipients: + erlendaasland, lemburg
2022-01-03 23:49:11erlendaaslandsetmessageid: <1641253751.15.0.329949671702.issue46249@roundup.psfhosted.org>
2022-01-03 23:49:11erlendaaslandlinkissue46249 messages
2022-01-03 23:49:11erlendaaslandcreate