node-postgres/test/integration/client
bmc 9b1c4facc2 Make query callback exceptions not break client
If you throw an exception in a query callback the client will not pulse
its internal query queue and therefor will never process any
more queries or emit its own 'drain' event.

I don't find this to be an issue in production code since I restart
the process on exceptions, but it can break tests and cause things
to 'hang'.  My crude benchmarks show no noticable impact in perf
from the try/catch/rethrow.

:q
2013-04-19 09:09:28 -05:00
..
api-tests.js remove 2 parameter pg.connect function 2013-03-07 15:57:00 -06:00
array-tests.js remove 2 parameter pg.connect function 2013-03-07 15:57:00 -06:00
big-simple-query-tests.js change assert.length to assert.lengthIs 2011-10-10 19:21:06 -05:00
cancel-query-tests.js cleanup & fix failing tests to allow for green merge of pull #228 2012-12-10 22:44:58 -06:00
configuration-tests.js use ConnectionParameters for js client properties 2013-01-21 16:14:19 -06:00
copy-tests.js remove 2 parameter pg.connect function 2013-03-07 15:57:00 -06:00
empty-query-tests.js cleanup & fix failing tests to allow for green merge of pull #228 2012-12-10 22:44:58 -06:00
error-handling-tests.js better handling of client stream termination 2013-03-28 13:24:33 -05:00
huge-numeric-tests.js remove 2 parameter pg.connect function 2013-03-07 15:57:00 -06:00
no-data-tests.js fixed 'overload' error for NativeQuery constructor 2011-03-07 18:56:50 -06:00
notice-tests.js remove failing, postgreSQL version specific test 2012-08-07 08:44:41 -05:00
prepared-statement-tests.js re-include previously ignored, failing test for named statements in prep for implementing feature 2011-03-05 11:32:37 -06:00
query-callback-error-tests.js Make query callback exceptions not break client 2013-04-19 09:09:28 -05:00
query-error-handling-tests.js make tests pass on pg@8.4.9 2013-04-17 10:29:42 -05:00
result-metadata-tests.js make tests pass on pg@8.4.9 2013-04-17 10:29:42 -05:00
simple-query-tests.js cleanup & fix failing tests to allow for green merge of pull #228 2012-12-10 22:44:58 -06:00
ssl-tests.js allow options to pass to js ssl connection bindings 2012-09-10 21:40:41 -05:00
test-helper.js add failing test for #130 2012-05-30 22:40:49 -05:00
transaction-tests.js remove 2 parameter pg.connect function 2013-03-07 15:57:00 -06:00
type-coercion-tests.js remove parseFloat 2013-03-07 16:19:11 -06:00