mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-92206: Move pysqlite_step() to Modules/_sqlite/cursor.c (#92207)
This commit is contained in:
parent
39e6b8ae6a
commit
e846fe3fc1
3 changed files with 14 additions and 16 deletions
|
@ -24,18 +24,6 @@
|
|||
#include "module.h"
|
||||
#include "connection.h"
|
||||
|
||||
int
|
||||
pysqlite_step(sqlite3_stmt *statement)
|
||||
{
|
||||
int rc;
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
rc = sqlite3_step(statement);
|
||||
Py_END_ALLOW_THREADS
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
// Returns non-NULL if a new exception should be raised
|
||||
static PyObject *
|
||||
get_exception_class(pysqlite_state *state, int errorcode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue