Do not emit row event

This commit is contained in:
Brian M. Carlson
2013-10-28 21:50:45 -05:00
parent 1f23523e61
commit 2f5b37e0ad
4 changed files with 6 additions and 8 deletions

View File

@@ -17,6 +17,7 @@ var CopyStreamQuery = function(text) {
this.text = text
this._listeners = null
this._copyOutResponse = null
this.rowCount = 0
}
util.inherits(CopyStreamQuery, Transform)
@@ -39,7 +40,7 @@ CopyStreamQuery.prototype._transform = function(chunk, enc, cb) {
lenBuffer.writeUInt32BE(chunk.length + 4, 0)
this.push(lenBuffer)
this.push(chunk)
this.emit('row')
this.rowCount++
cb()
}