bpo-9303: Migrate sqlite3 module to _v2 API to enhance performance (#359)

This commit is contained in:
Aviv Palivoda 2017-03-03 12:58:17 +02:00 committed by Berker Peksag
parent 15aa4c88f6
commit 86a670543f
6 changed files with 30 additions and 9 deletions

View file

@ -93,7 +93,7 @@ int pysqlite_statement_create(pysqlite_Statement* self, pysqlite_Connection* con
}
Py_BEGIN_ALLOW_THREADS
rc = sqlite3_prepare(connection->db,
rc = SQLITE3_PREPARE(connection->db,
sql_cstr,
-1,
&self->st,
@ -334,7 +334,7 @@ int pysqlite_statement_recompile(pysqlite_Statement* self, PyObject* params)
}
Py_BEGIN_ALLOW_THREADS
rc = sqlite3_prepare(self->db,
rc = SQLITE3_PREPARE(self->db,
sql_cstr,
-1,
&new_st,