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

#112 attempted fix #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

#112 attempted fix #121

wants to merge 1 commit into from

Conversation

nicferrier
Copy link

I was having problems with RETURNING statements (like an INSERT returning the id of the created row) but it turned out that it was just a problem with async notifications breaking the flow as illustrated.

Basically, what I was getting was notices from a trigger function that happen on the insert. These appear before the DataRow that encapsulate the RETURNING.

Maybe this is a bit messy. But it works.

I suspect that there's a much better way of dealing with the async messages.

@will
Copy link
Owner

will commented Dec 30, 2017

Thanks for sending this in. I'm traveling this week and won't be able to properly take a look at this before the new year.

Could you please also add a test that fails without this change to pq::connection and passes with it to make sure it doesn't regress again in the future?

@waghanza
Copy link
Contributor

@nicferrier Time to complete this PR ?

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

3 participants