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

Upon SELECT queries, 'result.rowsAffected' returns number of rows returned. Needs documentation #1019

Open
aroncal opened this issue Apr 2, 2020 · 1 comment
Labels

Comments

@aroncal
Copy link

@aroncal aroncal commented Apr 2, 2020

When executing a query, the result object has the rowsAffected property. According to the documentation, it gives that information for INSERT/UPDATE/DELETE queries; but I can see that it also gives the number of rows returned by a SELECT query.

Can we be confident it will be that way always? If so, shouldn't the README be updated to reflect this behavior?

Thanks.

@dhensby
Copy link
Collaborator

@dhensby dhensby commented Apr 2, 2020

Yep - looks like readme needs updating. Happy to take contributions

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.