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 ?