@@ -8,9 +8,9 @@ var utils = require(__dirname + '/utils');
88var Query = function ( config , values , callback ) {
99 // use of "new" optional
1010 if ( ! ( this instanceof Query ) ) { return new Query ( config , values , callback ) ; }
11-
11+
1212 config = utils . normalizeQueryConfig ( config , values , callback ) ;
13-
13+
1414 this . text = config . text ;
1515 this . values = config . values ;
1616 this . rows = config . rows ;
@@ -36,7 +36,7 @@ p.requiresPreparation = function() {
3636 //named queries must always be prepared
3737 if ( this . name ) { return true ; }
3838 //always prepare if there are max number of rows expected per
39- //portal execution
39+ //portal execution
4040 if ( this . rows ) { return true ; }
4141 //don't prepare empty text queries
4242 if ( ! this . text ) { return false ; }
@@ -179,14 +179,14 @@ p.prepare = function(connection) {
179179} ;
180180p . streamData = function ( connection ) {
181181 if ( this . stream ) this . stream . startStreamingToConnection ( connection ) ;
182- else connection . sendCopyFail ( 'No source stream defined' ) ;
182+ else connection . sendCopyFail ( 'No source stream defined' ) ;
183183} ;
184184p . handleCopyFromChunk = function ( chunk ) {
185185 if ( this . stream ) {
186186 this . stream . handleChunk ( chunk ) ;
187- }
187+ }
188188 //if there are no stream (for example when copy to query was sent by
189- //query method instead of copyTo) error will be handled
190- //on copyOutResponse event, so silently ignore this error here
189+ //query method instead of copyTo) error will be handled
190+ //on copyOutResponse event, so silently ignore this error here
191191} ;
192192module . exports = Query ;
0 commit comments