Skip to content

Add support for BCD field type (5635)#1

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-valueerror-fieldtype
Draft

Add support for BCD field type (5635)#1
Copilot wants to merge 2 commits intomainfrom
copilot/fix-valueerror-fieldtype

Conversation

Copy link
Copy Markdown

Copilot AI commented Jan 3, 2026

DBISAM tables with BCD (Binary Coded Decimal) fields fail to parse, raising ValueError: 5635 is not a valid FieldType.

Changes

  • pydbisam/field.py: Added BCD = (5635, 8) to FieldType enum and decode handler (8-byte IEEE-754 double, identical to CURRENCY)
  • NOTES.md: Documented BCD field type (ID 5635, 8 bytes)

BCD (0x1603) is used in DBISAM for precise decimal calculations without floating-point rounding errors.

Original prompt

Implement: ValueError: 5635 is not a valid FieldType


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: Muspah <43544407+Muspah@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix ValueError for invalid FieldType Add support for BCD field type (5635) Jan 3, 2026
Copilot AI requested a review from Muspah January 3, 2026 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants