DBFFile icon indicating copy to clipboard operation
DBFFile copied to clipboard

Type 'Y' is not supported

Open zhuzhuojiang opened this issue 1 year ago • 2 comments

I got "Type 'Y' is not supported" Error to read a DBF. And I searched the Y field type by google, got https://stackoverflow.com/questions/33774148/get-fieldtype-of-dbf-file . There is one command mentioned "'Y' (currency)" . Should we add this type and as the with "I (Interger)" parser?

zhuzhuojiang avatar Mar 06 '23 05:03 zhuzhuojiang

Should be case 'Y': value = buffer.readInt32LE(offset); value = value / Math.pow(10, field.decimalPlaces); offset += field.size; break; in dbf-file.js

zhuzhuojiang avatar Mar 07 '23 15:03 zhuzhuojiang

Hi @zhuzhuojiang, sorry for the delay. Would you consider preparing a PR to support the Y field type? There's already been some work done in #60 that could be a starting point. As I noted there, the PR would need to include some unit tests, and support for both reading and writing.

yortus avatar Mar 17 '23 06:03 yortus

'Y' type is now supported in v1.10.0

yortus avatar May 03 '24 13:05 yortus