ibmdb / node-ibm_db

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

VARCHAR, Array Insert, Length ? #852

Closed markddrake closed 2 years ago

markddrake commented 2 years ago

Is the Length in characters or bytes ?. Since JSON String are UTF-8 the values could easily be different

markddrake commented 2 years ago

From trial and error it appears that lengths are specified in bytes.

bimalkjha commented 2 years ago

@markddrake Yes, the length should be in bytes as it is used to allocate internal memory to store values. Thanks.