mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-9303: Migrate sqlite3 module to _v2 API to enhance performance (#359)
This commit is contained in:
parent
15aa4c88f6
commit
86a670543f
6 changed files with 30 additions and 9 deletions
|
|
@ -49,10 +49,13 @@ int _pysqlite_seterror(sqlite3* db, sqlite3_stmt* st)
|
|||
{
|
||||
int errorcode;
|
||||
|
||||
/* SQLite often doesn't report anything useful, unless you reset the statement first */
|
||||
#if SQLITE_VERSION_NUMBER < 3003009
|
||||
/* SQLite often doesn't report anything useful, unless you reset the statement first.
|
||||
When using sqlite3_prepare_v2 this is not needed. */
|
||||
if (st != NULL) {
|
||||
(void)sqlite3_reset(st);
|
||||
}
|
||||
#endif
|
||||
|
||||
errorcode = sqlite3_errcode(db);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue