Use sqlite3_stmt pointer iso. deref'ing self when calling sqlite3_reset · python/cpython@cbcd640 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit cbcd640
Erlend E. Aasland
committed
Use sqlite3_stmt pointer iso. deref'ing self when calling sqlite3_reset
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -378,7 +378,7 @@ int pysqlite_statement_reset(pysqlite_Statement* self) | ||
378 | 378 | |
379 | 379 | int rc; |
380 | 380 | Py_BEGIN_ALLOW_THREADS |
381 | -rc = sqlite3_reset(self->st); | |
381 | +rc = sqlite3_reset(stmt); | |
382 | 382 | Py_END_ALLOW_THREADS |
383 | 383 | |
384 | 384 | if (rc == SQLITE_OK) { |