cretz / node-tds

Pure JS implementation of TDS protocol for Microsoft SQL Server
http://cretz.github.com/node-tds
MIT License
104 stars 23 forks source link

Nullable varchar columns with null values is throwing index out of bounds exception. #33

Open tdarsan opened 11 years ago

tdarsan commented 11 years ago

Deletion of this line, as part of #12, in row.token.coffee file is causing issues with nullable varchar columns and is throwing index out of bounds exception. Eg:- a varchar(9) nullable column with null values in it will thow an exception.

if val.length is 0xFFFF then val.length = -1