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 2021-08-28.21:42:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630186940.75.0.867509999699.issue45041@roundup.psfhosted.org>
In-reply-to
Content
See also bpo-45040

Since sqlite3_finalize() will pass on any error message set by sqlite3_step(), we can greatly simplify SQLite C API usage and error handling in sqlite3.Cursor.executescript(), thus reducing the number of times we save/restore thread state, and also simplifying error handling greatly.

We can also "inline" the commit before the main loop using the SQLite API directly, instead of calling self.commit()

Diffstat for the proposed patch:
1 file changed, 25 insertions(+), 42 deletions(-)
History
Date User Action Args
2021-08-28 21:42:20erlendaaslandsetrecipients: + erlendaasland
2021-08-28 21:42:20erlendaaslandsetmessageid: <1630186940.75.0.867509999699.issue45041@roundup.psfhosted.org>
2021-08-28 21:42:20erlendaaslandlinkissue45041 messages
2021-08-28 21:42:20erlendaaslandcreate