This project has moved and is read-only. For the latest updates, please go here.

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

Aug 20, 2016 at 9: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 11: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 11:46 AM
Ok, thanks.
Aug 20, 2016 at 12:46 PM
Included in Release v2.1.1, just published
Aug 21, 2016 at 7:35 AM
Ok, Visual Studio doesn't catch any error anymore on this line, it seems to be fixed, thanks.