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

[Exception in internal.isfit.org] users#update #138

Open
krisvage opened this issue Feb 2, 2015 · 1 comment
Open

[Exception in internal.isfit.org] users#update #138

krisvage opened this issue Feb 2, 2015 · 1 comment

Comments

@krisvage
Copy link
Contributor

krisvage commented Feb 2, 2015

[Exception in internal.isfit.org] users#update (ActiveRecord::StatementInvalid) "Mysql2::Error: Out of range value for c

An ActiveRecord::StatementInvalid occurred in users#update:

Mysql2::Error: Out of range value for column 'cardnumber_samfundet' at row 1


Backtrace:

app/controllers/users_controller.rb:31:in `update'

@Filip0
Copy link
Member

Filip0 commented Feb 3, 2015

The user tried to enter a different card number that exceeded the lenght of int. This has revealed another problem with the real number have a leading zero in the id. The field may need to be changed to string.

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