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

(At least some) MySQL INT types are not representable as Haskell Int or Integer #26

Open
crosser opened this issue Dec 29, 2015 · 0 comments

Comments

@crosser
Copy link

crosser commented Dec 29, 2015

If I

create table coldcnt (timestamp datetime, value int);

then the value field is only representable as Double, Float or Rational. This is counterintuitive and probably wrong (i.e. may lead to wrong result). Internally, value field becomes int(11). Regardless of the number of digits, an integer SQL field ought to be representable as Integer haskell type, even if it is not representable as Int type.

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