Message409620
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(). |
|
Date |
User |
Action |
Args |
2022-01-03 21:14:27 | erlendaasland | set | recipients:
+ erlendaasland |
2022-01-03 21:14:27 | erlendaasland | set | messageid: <1641244467.23.0.820858977306.issue46249@roundup.psfhosted.org> |
2022-01-03 21:14:27 | erlendaasland | link | issue46249 messages |
2022-01-03 21:14:27 | erlendaasland | create | |
|