This is an archived copy of the forum for reference purposes
fValidation, Maximum Integer Issue in Mysql Bigint
posted by
o
10 years ago
Im using bigint in some rows in mysql. I cant submit integers more than max int value with validation to bigint rows.
I must declare bigint integer is string in validation class. Do you have a different solution for this problem ?
Are you using fActiveRecord, or just fDatabase? Did you ever figure out if anything was casting the bigint to regular ints?
To my knowledge, fDatabase doesn't cast integer or float values, specifically to prevent issues with them being outside the range of 32bit OSes. I can't think of anything that should be casting these bigints to integers instead of strings.