-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
TypeError: Cannot call method 'sync' of undefined #549
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
Comments
You are totally right! So sorry about that. :( Do you have a test case to reproduce? I will add this to the library asap. |
It's kinda meshed into our own test setup/teardown so it would be hard to extract... |
rngadam
pushed a commit
to letsface/node-postgres
that referenced
this issue
Apr 24, 2014
a fix was provided in 5079c1e; test is modeled on query-error-handling-tests.js; test both kill query and disconnection on prepared statement execution; make connection error string message consistent between native and non-native; disable test server-side kill for native as it hangs; sync can cause error to be emitted so we catch that; we also move _ending state before _send is called.
brianc
added a commit
that referenced
this issue
Apr 24, 2014
test to reproduce behavior of issue #549
closed thanks to the PR! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node-postgres 2.8.2
Exception:
the relevant code:
and (in pg/lib/client.js)
I think this:
should be changed to this?
The text was updated successfully, but these errors were encountered: