Message387858
There are three calls of pysqlite_statement_reset() in _pysqlite_query_execute(). And all three of them can be called with the same statement object. But repeated calls are no-ops because pysqlite_statement_reset() clears flag in_use and calls sqlite3_reset() only if it was set before. So additional call of pysqlite_statement_reset() does not harm. You can call it as many times as you want. On other hand removing it can introduce race condition.
Maybe the code could be rewritten in more explicit way and call pysqlite_statement_reset() only when it is necessary, but for now I don't think that just removing one call will make the code better. |
|
Date |
User |
Action |
Args |
2021-03-01 12:15:06 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, berker.peksag, erlendaasland |
2021-03-01 12:15:06 | serhiy.storchaka | set | messageid: <1614600906.35.0.225535353108.issue43350@roundup.psfhosted.org> |
2021-03-01 12:15:06 | serhiy.storchaka | link | issue43350 messages |
2021-03-01 12:15:05 | serhiy.storchaka | create | |
|