Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a simple example :

oracle.connect(connectData, function(err, connection) {
connection.setPrefetchRowCount(100);
var reader = connection.reader(sql, []);

function doRead(cb) {
    reader.nextRow(function(err, row) {
    if (err) return cb(err);
    if (row) {
        return doRead(cb)
    } else {
        return cb();
    }
})
  }

doRead(function(err) {
    if (err) throw err; // or log it
    console.log("all records processed");
    console.log(arr)
});
  })

result: Segmentation fault.

If I use simple execute(sql) - all OK. Why ?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.