Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1 from mika-fischer/sqlite3-affected-rows
Implement get_affected_rows for SQLite3 backend
  • Loading branch information
mloskot committed Nov 18, 2011
2 parents 64358c8 + b394d03 commit 0224539
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/backends/sqlite3/statement.cpp
Expand Up @@ -276,8 +276,7 @@ sqlite3_statement_backend::fetch(int number)

long long sqlite3_statement_backend::get_affected_rows()
{
// ...
return -1;
return sqlite3_changes(session_.conn_);
}

int sqlite3_statement_backend::get_number_of_rows()
Expand Down

0 comments on commit 0224539

Please sign in to comment.