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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue