abstractvector / node-dbf

An efficient dBase DBF file parser written in pure JavaScript
MIT License
54 stars 67 forks source link

Boolean fields are reversed #11

Open palamccc opened 10 years ago

palamccc commented 10 years ago

I tried to use latest commit which uses stream parsing ( @sedenardi ) But all of my boolean fields are reversed after this pull.

palamccc commented 10 years ago

Its not boolean field, as i reported earlier, its field "@deleted", it is true for most of records, Looks like calculation for "@deleted" gone wrong somewhere.

sedenardi commented 10 years ago

@palamccc can you confirm this issue wasn't happening before the latest commit (before streaming)? I didn't have any DBF files with deleted rows to test it, but I also left the code that calculates that field intact.

deleted commented 10 years ago

@palamccc Apologies. Going forward I will try to return falsey values more often.