Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added boolean/integer return types to delete*() methods #306

Closed
wants to merge 4 commits into from
Closed

Added boolean/integer return types to delete*() methods #306

wants to merge 4 commits into from

Conversation

aballano
Copy link
Contributor

Added also tests.

Update of #297

@whoshuu Here we go!

Shyish and others added 3 commits April 6, 2015 18:51
Added boolean return for single-deletion operations.
Simplified "deleteAll(Class<T>)" method.
Created tests for boolean and integer return type of delete methods.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 64.98% when pulling 956f0a8 on Shyish:master into 95eb367 on satyan:master.

@aballano
Copy link
Contributor Author

Ok, just realized that the coverage is even lower than before, I´m just creating more tests right now ;)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.41%) to 65.59% when pulling 41b10b9 on Shyish:master into 95eb367 on satyan:master.

@whoshuu whoshuu added this to the 1.4.0 milestone Apr 11, 2015
@@ -85,6 +86,7 @@
sqLiteDatabase.endTransaction();
sqLiteDatabase.setLockingEnabled(true);
}
return deletedRows;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This return a non zero number if the transaction is aborted while it's occurring. However, since it's a transaction, it'll roll back all of the deletes, so you should be returning zero in that case.

@whoshuu whoshuu closed this in a45dd1a Apr 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants