simplified statement_reset
This commit is contained in:
@@ -27,11 +27,12 @@ void tsqlite_statement_free(tsqlite_statement* self){
|
||||
free(self);
|
||||
}
|
||||
|
||||
Result(void) tsqlite_statement_reset(tsqlite_statement* self){
|
||||
try_sqlite3(self->conn, sqlite3_reset(self->st));
|
||||
void tsqlite_statement_reset(tsqlite_statement* self){
|
||||
if(!self)
|
||||
return;
|
||||
sqlite3_reset(self->st);
|
||||
self->result_row = -1;
|
||||
self->result_col = -1;
|
||||
return RESULT_VOID;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user