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

postgres: return whole result on updates and deletes #2944

Closed
wants to merge 2 commits into from

Conversation

edevil
Copy link

@edevil edevil commented Oct 17, 2018

Currently on updates and deletes nothing useful is returned to the caller. By returning the whole result from the postgres driver we can know how many rows were altered, etc.

Addresses: #2415, #1308, #2578

Currently on updates and deletes nothing useful is returned to the caller. By returning the whole result from the postgres driver we can know how many rows were altered, etc.
@edevil
Copy link
Author

edevil commented Oct 18, 2018

This doesn't seem to be possible without breaking changes.

@edevil edevil closed this Oct 18, 2018
@adrianhara
Copy link

May I ask why this issue was closed? Currently the updates return a result object. Is it not possible to augment that one instead of changing it completely?

@edevil
Copy link
Author

edevil commented Oct 18, 2018

From what I saw there are several places that assume that you only return the ‘rows’ attribute of the result object, and thus miss out on other interesting info.

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

Successfully merging this pull request may close these issues.

None yet

2 participants