52 Commits

Author SHA1 Message Date
Brian M. Carlson
3675d2b041 Fix to support node@4 LTS 2017-08-05 17:17:24 -05:00
Brian Carlson
a720dc774b Some cleanup 2017-08-05 16:59:20 -05:00
Brian M. Carlson
5a0af8cdd1 Bump version 2017-08-05 15:56:56 -05:00
Brian C
25d978e593 Merge pull request #28 from brianc/rickbergfalk-master
Do not send close after readyForQuery
2017-08-05 15:55:54 -05:00
Brian M. Carlson
620ddc0ded Do not send close after readyForQuery
Close is used to release a named portal (which isn't used by pg-cursor) or when you're early-terminating a cursor on the unnamed portal. Sending 'close' on an connection which has already sent 'readyForQuery' results in the connection responding with a _second_ 'readyForQuery' which causes a lot of issues within node-postgres as 'readyForQuery' is the signal to indicate the client has gone back into the idle state.
2017-08-04 17:40:52 -05:00
Rick Bergfalk
6072bcea8e Merge remote-tracking branch 'brianc/master' 2017-08-04 16:58:34 -04:00
Rick Bergfalk
9c7d2c853e Test cursor with pg-pool 2017-08-04 16:58:32 -04:00
Brian M. Carlson
6e462ffae6 Bump version 2017-05-15 23:16:55 -05:00
Brian C
bbc2b416ed Merge pull request #25 from sberan/cursor-result
Emit Query Events
2017-05-15 23:15:59 -05:00
Sam Beran
4427e31661 fix travis build env 2017-05-09 10:13:57 -05:00
Sam Beran
2f480217cb fix: only dispatch error events if we have a listener 2017-05-09 10:13:57 -05:00
Sam Beran
acae15de53 Emit Query Events
This change adds events to the `Cursor` object
as per the [Query API](https://github.com/brianc/node-postgres/wiki/Query).
2017-05-09 10:13:57 -05:00
Brian Carlson
42af014483 Update travis.yml 2017-05-08 16:49:24 -05:00
Brian Carlson
4bf66e65de Bump version 2017-04-27 14:37:58 -05:00
Brian C
3cad54e061 Merge pull request #23 from sberan/cursor-result
Return result accumulator in callback
2017-04-27 14:37:49 -05:00
Sam Beran
557e5f879d Return result accumulator in callback
fixes issue: https://github.com/brianc/node-pg-cursor/issues/22
2017-04-27 14:26:11 -05:00
Brian Carlson
a3204168b7 Bump version 2017-04-27 11:42:19 -05:00
Brian C
24d85f5e17 Merge pull request #19 from crisvergara/master
Fix require for webpack compatibility
2017-04-27 11:41:53 -05:00
Cris Vergara
af84d5cd4b Fix require for webpack compatibility 2016-12-05 17:18:25 -05:00
brianc
4f6208521b Bump version 2016-06-28 17:44:02 -07:00
Brian C
02dc31f925 Merge pull request #17 from rickbergfalk/master
handle empty query
2016-06-28 17:42:44 -07:00
Rick Bergfalk
74b6891b20 handle empty query 2016-06-28 16:47:50 -05:00
Brian C
a01a555ad6 Merge pull request #12 from dmnd/patch-1
Fix typo: itterate -> iterate
2015-03-19 08:57:07 -04:00
Desmond Brand
56ebc6a656 Fix typo: itterate -> iterate 2015-03-18 00:40:22 -07:00
Brian M. Carlson
8d395ff8c0 Bump version 2014-09-24 23:43:25 -04:00
Brian M. Carlson
40f361fd8e Add boilerplate files 2014-09-24 23:43:15 -04:00
Brian M. Carlson
19a2d26fc1 Add client#close
Closes #6
2014-09-24 23:42:51 -04:00
Brian M. Carlson
b9fd38df15 Bump version 2014-05-22 11:17:03 -04:00
Brian C
8bfd3a5bde Merge pull request #5 from grncdr/no-row-description
Work with queries that don't have row descriptions
2014-05-22 11:16:23 -04:00
Stephen Sugden
8283fd9b22 add support for queries that don't return a row description 2014-05-21 22:44:51 +02:00
Stephen Sugden
5084624e8d fix test command in package.json 2014-05-21 22:42:54 +02:00
Stephen Sugden
9cc3e527da add failing test for noData queries 2014-05-21 22:42:35 +02:00
Stephen Sugden
f7b6572399 fix typo 2014-05-21 21:54:27 +02:00
Brian M. Carlson
37de20e826 Bump version 2014-03-21 11:44:59 -05:00
Brian M. Carlson
1a9fd7ff76 Do not callback with final empty array until readyForQuery is received
Closes https://github.com/brianc/node-pg-query-stream/issues/3
2014-03-21 11:44:46 -05:00
Brian M. Carlson
b1b39bbd4f Bump version 2014-02-26 09:30:09 -06:00
Brian M. Carlson
f1dbe7884c Normalize parameter values 2014-02-26 09:30:00 -06:00
Brian M. Carlson
cc9f08a042 Bump version 2014-02-26 06:48:35 -06:00
Brian M. Carlson
4925172530 Fix require problem for pg module
Closes #3
2014-02-26 06:48:05 -06:00
Brian M. Carlson
a3074e9d54 Bump mocha version 2014-02-26 06:43:22 -06:00
Brian M. Carlson
87c3cf5e5e Bump version 2014-02-26 06:42:36 -06:00
Brian C
dc92b1220e Update README.md 2013-11-20 22:53:19 -06:00
Brian C
a275adae52 Create README.md 2013-11-20 22:49:08 -06:00
Brian M. Carlson
9af987fa63 Pass all tests 2013-11-20 22:30:52 -06:00
Brian M. Carlson
31b2b1da6f All tests passing in isolation
Still have weird race conditions & shutdown/error/resume conditions to tackle
2013-11-11 23:20:04 -06:00
Brian M. Carlson
2e33d4acc0 Add default mocha options 2013-11-08 17:08:55 -06:00
Brian M. Carlson
9e2f622403 Port tests to use mocha 2013-11-08 17:07:54 -06:00
Brian Carlson
40af7c2f4a Update package.jsn 2013-11-08 16:50:17 -06:00
Brian Carlson
8a3b3d4167 Bump version 2013-10-07 14:29:28 -05:00
Brian Carlson
31fd30d329 Fix test 2013-10-07 11:54:58 -05:00