mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Fixes issue #3103. In the sqlite3 module, made one more function static. All renaming public symbos now have the pysqlite prefix to avoid name clashes. This at least once created problems where the same symbol name appeared somewhere in Apache and the sqlite3 module was used from mod_python.
This commit is contained in:
parent
ef2276b60d
commit
6e1afcf988
9 changed files with 31 additions and 28 deletions
|
|
@ -605,7 +605,7 @@ PyObject* _pysqlite_query_execute(pysqlite_Cursor* self, int multiple, PyObject*
|
|||
/* Keep trying the SQL statement until the schema stops changing. */
|
||||
while (1) {
|
||||
/* Actually execute the SQL statement. */
|
||||
rc = _sqlite_step_with_busyhandler(self->statement->st, self->connection);
|
||||
rc = pysqlite_step(self->statement->st, self->connection);
|
||||
if (rc == SQLITE_DONE || rc == SQLITE_ROW) {
|
||||
/* If it worked, let's get out of the loop */
|
||||
break;
|
||||
|
|
@ -803,7 +803,7 @@ PyObject* pysqlite_cursor_executescript(pysqlite_Cursor* self, PyObject* args)
|
|||
/* execute statement, and ignore results of SELECT statements */
|
||||
rc = SQLITE_ROW;
|
||||
while (rc == SQLITE_ROW) {
|
||||
rc = _sqlite_step_with_busyhandler(statement, self->connection);
|
||||
rc = pysqlite_step(statement, self->connection);
|
||||
/* TODO: we probably need more error handling here */
|
||||
}
|
||||
|
||||
|
|
@ -871,7 +871,7 @@ PyObject* pysqlite_cursor_iternext(pysqlite_Cursor *self)
|
|||
}
|
||||
|
||||
if (self->statement) {
|
||||
rc = _sqlite_step_with_busyhandler(self->statement->st, self->connection);
|
||||
rc = pysqlite_step(self->statement->st, self->connection);
|
||||
if (rc != SQLITE_DONE && rc != SQLITE_ROW) {
|
||||
(void)pysqlite_statement_reset(self->statement);
|
||||
Py_DECREF(next_row);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue