Commit Graph

12 Commits

Author SHA1 Message Date
brianc
6f8292435d Respond to emptyQuery with a sync message
When a __prepared statement__ has no body in the query the backend responds with an `emptyQuery` message but never with a `commandComplete` or `errorResponse` message.  The client was hanging forever waiting for one of the other two expected messages.  The server was hanging forever waiting for the client to respond with a `sync` message.  This change has the client send the required `sync` on receipt of an `emptyQuery` message when the query is a prepared statement.  Fixes #822
2015-08-01 18:51:49 -05:00
brianc
17f14f4e58 Add warning for native bindings 2015-06-07 10:20:48 -04:00
Brian M. Carlson
1094040344 Fix test 2014-12-13 12:25:07 -05:00
Kesav Kumar Kolla
0994d6b795 Added test cases for issue #699 2014-12-12 13:53:09 +05:30
Brian M. Carlson
f088442570 Fix for empty buffer segfault in native bindings 2014-11-10 23:29:15 -05:00
Brian M. Carlson
9e2a3e599b Fix issue with parsed statement cache timing - closes #665 2014-10-21 13:50:49 -04:00
Brian M. Carlson
11c3c74994 Merge branch 'master' of github.com:brianc/node-postgres 2014-10-20 00:21:28 -04:00
Brian M. Carlson
1ccc5eb40b Add regression test for #199 2014-10-20 00:21:16 -04:00
Brian M. Carlson
1e648c5df4 Do not consider a statement as prepared if it errors
Fixes #600
2014-10-19 22:53:08 -04:00
Brian M. Carlson
5f592a1240 Fix exception caused by column names with single quotes
Also rename some test files so they match the Makefile regex.  They will be included in the test suite from now on.
2014-01-22 08:38:29 -06:00
brianc
730355040d add failing test for #131 2012-05-30 22:50:12 -05:00
brianc
66ea0249d8 add failing test for #130 2012-05-30 22:40:49 -05:00