Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in castTo() for numeric and date types #1

Open
davethecanuck opened this issue Jun 15, 2022 · 0 comments
Open

Errors in castTo() for numeric and date types #1

davethecanuck opened this issue Jun 15, 2022 · 0 comments

Comments

@davethecanuck
Copy link

TIBRVMSG_I8 handling references self.data.i8.value but should instead just reference self.data.i8. The 'value' attribute is not valid as the value is stored at the 'i8' level. This same error exists in the other signed and unsigned numeric types. Removing the '.value' suffix fixes the issue.

Likewise, the DATETIME handler doesn't work as the 'value' attribute does not exist for the date.sec and date.nsec fields. This type handler has an additional problem as 'obj.data=dt' fails with: "AttributeError: can't set attribute".

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

No branches or pull requests

1 participant