Length = record.GetNullableInt("CHARACTER_MAXIMUM_LENGTH") : Long ?

Aug 20, 2016 at 8:07 AM
Hi all, I got a value of 4294967295 for this length in my MySQL database, which requires a long, not a Int, are you sure of this size ?
Aug 20, 2016 at 10:36 AM
4294967295 is the maximum size of an unsigned int(255), so yes, MySql thinks this is an "int" but in .net terms it's a long. I'll put in a check so that it doesn't overflow. We might need a "LongLength" as well as a "Length"...
Aug 20, 2016 at 10:46 AM
Ok, thanks.
Aug 20, 2016 at 11:46 AM
Included in Release v2.1.1, just published
Aug 21, 2016 at 6:35 AM
Ok, Visual Studio doesn't catch any error anymore on this line, it seems to be fixed, thanks.