Query.All on Oracle returns 1 result - SQL returns 133
Closed this issue · 1 comments
ioneyed commented
I am using the following:
MyModel.all(conn,function(err,myresults){
console.log(myresults); //this only returns 1 but the sql generated will return 133
});
Am I missing some functionality? Do I need to call process.nextTick to have it continue populating the resultset?
ioneyed commented
This is due to the following line of code
https://github.com/joeferner/node-persist/blob/master/lib/sqltree.js#L108
Although this is probably proper the legacy database I am using this against doesn't seem to like this grouping - possibly consider an argument to pass to group on primary key?