brianc/node-postgres — pull request #315 by brianc (2013-03-28 18:27:52+00:00)
Title: better handling of client stream termination

1. Pass an error to an active query if the client is ended while a query is in progress.
2. actually emit 'end' event on the client when the stream ends
3. do not emit an error from native bindings if lasterror is null

this is a more robust fix for #299