@@ -20,7 +20,7 @@ var NativeQuery = function(config, values, callback) {
2020 this . text = config . text ;
2121 this . values = config . values ;
2222 this . callback = config . callback ;
23-
23+
2424 this . _result = new Result ( ) ;
2525 //normalize values
2626 if ( this . values ) {
@@ -38,8 +38,9 @@ var p = NativeQuery.prototype;
3838var mapRowData = function ( row ) {
3939 var result = { } ;
4040 for ( var i = 0 , len = row . length ; i < len ; i ++ ) {
41- var item = row [ i ] ;
42- result [ item . name ] = item . value === null ? null : types . getTypeParser ( item . type , 'text' ) ( item . value ) ;
41+ var item = row [ i ] ;
42+ result [ item . name ] = item . value === null ? null :
43+ types . getTypeParser ( item . type , 'text' ) ( item . value ) ;
4344 }
4445 return result ;
4546} ;
@@ -79,14 +80,14 @@ p.handleReadyForQuery = function(meta) {
7980} ;
8081p . streamData = function ( connection ) {
8182 if ( this . stream ) this . stream . startStreamingToConnection ( connection ) ;
82- else connection . sendCopyFail ( 'No source stream defined' ) ;
83+ else connection . sendCopyFail ( 'No source stream defined' ) ;
8384} ;
8485p . handleCopyFromChunk = function ( chunk ) {
8586 if ( this . stream ) {
8687 this . stream . handleChunk ( chunk ) ;
8788 }
8889 //if there are no stream (for example when copy to query was sent by
89- //query method instead of copyTo) error will be handled
90- //on copyOutResponse event, so silently ignore this error here
90+ //query method instead of copyTo) error will be handled
91+ //on copyOutResponse event, so silently ignore this error here
9192} ;
9293module . exports = NativeQuery ;
0 commit comments