I am encountering an issue when using the node-oracledb library to perform a SELECT query on a large number of rows in my Oracle table. The error I'm getting is:
NJS-112: internal error: read integer of length 19 when expecting integer of no more than length 4
Here are the details:
Environment:
Node.js 18
node-oracledb version: 6.0.0
SQL Query:
I'm executing the following SQL query:
Note: The error occurs when the query returns a large number of rows. If the query returns only a small number of rows, the error does not occur.
fetchArraySize setting:
I've tested by changing the fetchArraySize setting, but the error still occurs when the number of rows is large.
Attempted resolutions:
I've tried changing the fetchArraySize, but the problem persists.
I've also checked to see if there's enough memory space, and it seems that there is.
code:
const result = await connection.execute("SELECT * FROM PCCLIENT",{},{
outFormat: oracledb.OUT_FORMAT_OBJECT, // query result format
extendedMetaData: false, // get extra metadata
fetchArraySize: 150, // internal buffer allocation size for tuning
maxRows:1000
});