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

Updates return invalid references #92

Open
tindzk opened this issue Apr 24, 2016 · 1 comment
Open

Updates return invalid references #92

tindzk opened this issue Apr 24, 2016 · 1 comment

Comments

@tindzk
Copy link
Collaborator

tindzk commented Apr 24, 2016

caseClass.update.result returns the number of updated rows wrapped in a Ref[T] object which makes it an invalid reference. As for case classes the value will be 0 or 1, therefore we could change the return type to boolean.

On the other hand, query.update.result should return either Int or Set[Ref[T]].

@darkfrog26
Copy link
Contributor

I agree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants