-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix(pg-query-stream): invoke this.callback
on cursor end/error
#2810
base: master
Are you sure you want to change the base?
Conversation
Thanks for doing this! Can you include a test to reproduce the issue / prove its fixed? Without tests I am unlikely to merge PRs as they become a future bug waiting to re-occur! 😄 |
I think |
@peterp I believe you can send a PR to my fork and it'll show up here when I merge |
@aleclarson I'm sorry; I'm not going to find enough time to write this. |
While I greatly appreciate the work in fixing this, the PR will remain unmerged until a test case is submitted. I can't merge untested code as it becomes a forever maintenance burden for me in the future with no way to check for expected behavior. |
@aleclarson Can you update your repo to latest. I maybe able to write the tests that we needed for this |
@aleclarson I let CI run on this PR so it should letcha know if tests pass. 😄 |
Closes #2013
This issue was caused by two things:
Client
wasn't using thecallback
argument thatPool#query
passes with theQueryStream
submittableQueryStream
wasn't attaching end/error listeners to itscursor
, which it needs for calling itscallback