strongloop / strong-oracle

Deprecated: Node.js Driver for Oracle databases (Use https://github.com/oracle/node-oracledb instead)
Other
45 stars 18 forks source link

Fixed invalid data when using blob data type #26

Closed vschoettke closed 9 years ago

vschoettke commented 9 years ago

The previous implementation was freeing the memory before it was used which leaded to corrupted data when using blobs.

NanBufferUse automatically frees the memory see https://github.com/rvagg/nan#api_nan_buffer_use

I also added casting to the correct length type (uint32_t) (4 Bytes) from size_t (8 Bytes).