ibmdb / node-ibm_db

IBM DB2 and IBM Informix bindings for node
MIT License
190 stars 151 forks source link

(Provide an Option to) return BIGINT as String or BIGINT #863

Closed markddrake closed 2 years ago

markddrake commented 2 years ago

Currently BIGINT columns are returned as JavaScript numbers. This is problematic, since there the JavaScript Number type cannot accurately represent the entire range of values supported by BIGINT. Ideally IBM_DB should return these columns as instances of the Node.js BIGINT class or as strings. Since this would be a 'breaking' change, it should be possible to configure how columns of BIGINT are returned, at the statement and connection level.