From dc6521b7c1fecf07787d553c97222ed5ffb235ae Mon Sep 17 00:00:00 2001 From: "Brian M. Carlson" Date: Mon, 9 Dec 2013 11:40:59 -0500 Subject: [PATCH] Fix to work with pg >= 2.8.2 --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 858b48d..a056df3 100644 --- a/index.js +++ b/index.js @@ -55,7 +55,7 @@ CopyStreamQuery.prototype.handleError = function(e) { this.emit('error', e) } -CopyStreamQuery.prototype.streamData = function(connection) { +CopyStreamQuery.prototype.handleCopyInResponse = function(connection) { this.pipe(connection.stream) } diff --git a/package.json b/package.json index 320ae33..e596a02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pg-copy-streams", - "version": "0.2.0", + "version": "0.2.1", "description": "Low-Level COPY TO and COPY FROM streams for PostgreSQL in JavaScript using", "main": "index.js", "scripts": {