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

Error with Doubles without a decimal part #378

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

Error with Doubles without a decimal part #378

fgaz opened this issue Mar 16, 2015 · 2 comments

Comments

@fgaz
Copy link
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
Copy link
Member

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

@fgaz
Copy link
Contributor Author

fgaz commented Mar 17, 2015

Yep, fixed. Thanks!

@fgaz fgaz closed this as completed Mar 17, 2015
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

2 participants