apigee / trireme-jdbc

Other
9 stars 5 forks source link

executeStreaming never emits 'end' event #8

Open shimonmagal opened 7 years ago

shimonmagal commented 7 years ago

executeStreaming never emits 'end' event

    db.executeStreaming('select * from employees',
      function(err, result, rowStream) {
        console.log('///' + rowStream.read());
            console.log(err);
        rowStream.on('data', function(row) {
          console.log('Got row %j', row);
        });

        rowStream.on('end', function() {
          console.log('End of query');
        });
      });
shimonmagal commented 7 years ago

https://github.com/apigee/trireme-jdbc/pull/9 - a possible easy fix for this issue