Slumber86 / express-oracle-session

An Oracle session store for express
MIT License
1 stars 10 forks source link

Enforce ARRAY outFormat #5

Closed fhahne closed 3 years ago

fhahne commented 5 years ago

Great module. One small tweak: could you enforce outFormat: oracledb.ARRAY for all the execute calls that rely on arrays as return value? I am running the store in a context where the global outFormat of the oracledb module gets overwritten, and thus the parsing of the session string fails. E.g., in row 144 of index.js: this.connection.execute(sql, params, { fetchInfo: { "DATA": { type: oracledb.STRING} } }, instead, use this.connection.execute(sql, params, { outFormat: oracledb.ARRAY, fetchInfo: { "DATA": { type: oracledb.STRING} } }, Thanks, Florian

Slumber86 commented 3 years ago

I have relased a new version fixing this bug, try it out