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

Error with `Double`s without a decimal part #378

Closed
fgaz opened this Issue Mar 16, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@fgaz
Contributor

fgaz commented Mar 16, 2015

If I define an entity with a Double enclosed in an abstract data type (ex. (Double,Double)) and I insert a number with the decimal part == 0 (ex. (1.23, 4.0)), when I try to get the entity, an error is thrown:

*** Exception: PersistMarshalError "field <field name>: Expected Double, received: PersistInt64 <the int number>"

I'm using sqlite.

@snoyberg

This comment has been minimized.

Show comment
Hide comment
@snoyberg

snoyberg Mar 17, 2015

Member

Good catch, should be fixed with the newest commit to the persistent package. Can you confirm?

Member

snoyberg commented Mar 17, 2015

Good catch, should be fixed with the newest commit to the persistent package. Can you confirm?

@fgaz

This comment has been minimized.

Show comment
Hide comment
@fgaz

fgaz Mar 17, 2015

Contributor

Yep, fixed. Thanks!

Contributor

fgaz commented Mar 17, 2015

Yep, fixed. Thanks!

@fgaz fgaz closed this Mar 17, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment