Quote:
Originally Posted by jtrimble
I've got a model object which has a string property that I'm trying to set to some string with a length > 50, but it's always cut off at 50 characters. This includes all string properties of this particular model object. I've verified that the string I'm assigning the model property isn't being truncated before hand...it is truncated on assignment. Has anyone else experienced this behavior? Thanks
Also, I've got the Min and Max length properties in the Model file for that attribute set to 0 and 300 respectively, but it doesn't seem to make a difference.
|
Wow, that's embarrassing....
I was using gdb printobject to print the model object to the console before I did any actual database commits. It turns out that gdb was only printing the first 50 characters of the attributes in the model object. I decided to go ahead and save the value to the database, and it saved the entire string, no truncation. oh well...lesson learned. Don't believe everything gdb tells you