Py_DECREF(database_obj);
if (rc != SQLITE_OK) {
- _pysqlite_seterror(self->db, NULL);
+ _pysqlite_seterror(self->db);
return -1;
}
rc = sqlite3_close_v2(self->db);
if (rc != SQLITE_OK) {
- _pysqlite_seterror(self->db, NULL);
+ _pysqlite_seterror(self->db);
return NULL;
} else {
self->db = NULL;
Py_END_ALLOW_THREADS
if (rc != SQLITE_OK) {
- _pysqlite_seterror(self->db, statement);
+ _pysqlite_seterror(self->db);
goto error;
}
rc = pysqlite_step(statement, self);
if (rc != SQLITE_DONE) {
- _pysqlite_seterror(self->db, statement);
+ _pysqlite_seterror(self->db);
}
Py_BEGIN_ALLOW_THREADS
Py_END_ALLOW_THREADS
if (rc != SQLITE_OK && !PyErr_Occurred()) {
- _pysqlite_seterror(self->db, NULL);
+ _pysqlite_seterror(self->db);
}
error:
rc = sqlite3_prepare_v2(self->db, "COMMIT", -1, &statement, NULL);
Py_END_ALLOW_THREADS
if (rc != SQLITE_OK) {
- _pysqlite_seterror(self->db, NULL);
+ _pysqlite_seterror(self->db);
goto error;
}
rc = pysqlite_step(statement, self);
if (rc != SQLITE_DONE) {
- _pysqlite_seterror(self->db, statement);
+ _pysqlite_seterror(self->db);
}
Py_BEGIN_ALLOW_THREADS
rc = sqlite3_finalize(statement);
Py_END_ALLOW_THREADS
if (rc != SQLITE_OK && !PyErr_Occurred()) {
- _pysqlite_seterror(self->db, NULL);
+ _pysqlite_seterror(self->db);
}
}
rc = sqlite3_prepare_v2(self->db, "ROLLBACK", -1, &statement, NULL);
Py_END_ALLOW_THREADS
if (rc != SQLITE_OK) {
- _pysqlite_seterror(self->db, NULL);
+ _pysqlite_seterror(self->db);
goto error;
}
rc = pysqlite_step(statement, self);
if (rc != SQLITE_DONE) {
- _pysqlite_seterror(self->db, statement);
+ _pysqlite_seterror(self->db);
}
Py_BEGIN_ALLOW_THREADS
rc = sqlite3_finalize(statement);
Py_END_ALLOW_THREADS
if (rc != SQLITE_OK && !PyErr_Occurred()) {
- _pysqlite_seterror(self->db, NULL);
+ _pysqlite_seterror(self->db);
}
}
PyErr_SetString(pysqlite_Warning, "SQL is of wrong type. Must be string.");
} else {
(void)pysqlite_statement_reset(statement);
- _pysqlite_seterror(self->db, NULL);
+ _pysqlite_seterror(self->db);
}
goto error;
}
Py_END_ALLOW_THREADS
if (bck_handle == NULL) {
- _pysqlite_seterror(bck_conn, NULL);
+ _pysqlite_seterror(bck_conn);
return NULL;
}
Py_END_ALLOW_THREADS
if (rc != SQLITE_OK) {
- _pysqlite_seterror(bck_conn, NULL);
+ _pysqlite_seterror(bck_conn);
return NULL;
}
PyErr_Clear();
}
}
- _pysqlite_seterror(self->db, NULL);
+ _pysqlite_seterror(self->db);
goto finally;
}
}
}
(void)pysqlite_statement_reset(self->statement);
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
goto error;
}
&script_cstr);
Py_END_ALLOW_THREADS
if (rc != SQLITE_OK) {
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
goto error;
}
if (rc != SQLITE_DONE) {
(void)sqlite3_finalize(statement);
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
goto error;
}
rc = sqlite3_finalize(statement);
if (rc != SQLITE_OK) {
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
goto error;
}
if (rc != SQLITE_DONE && rc != SQLITE_ROW) {
(void)pysqlite_statement_reset(self->statement);
Py_DECREF(next_row);
- _pysqlite_seterror(self->connection->db, NULL);
+ _pysqlite_seterror(self->connection->db);
return NULL;
}