Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: YanDJ on May 10, 2023, 12:45:44 am

Title: [EA15] Too long initialization value for an attribute
Post by: YanDJ on May 10, 2023, 12:45:44 am
Hi, I am trying to add a large initialization value to an attribute in c. This attribute is a large structure containing many elements, that's why my initialization value is large.
But when I tried to add the initialization value, EA cut off after 30000 characters.

Is there any way to increase the size limit?

Thank you for your understanding.
Title: Re: [EA15] Too long initialization value for an attribute
Post by: qwerty on May 10, 2023, 01:17:16 am
Depends on your DB. For SQL Server they use
Code: [Select]
`Default` MEDIUMTEXT ,in t_attribute which will probably be 32k. Ask your DBA to put in something larger there. Makes your DB not interchangeable with others.

q.
Title: Re: [EA15] Too long initialization value for an attribute
Post by: YanDJ on May 10, 2023, 09:52:20 pm
Hello Qwerty,
Thank you for your response, I have change in my database the t_attribute->Default from mediumtext to longtext.
longtext should be able to store up to 4go. But nothing changes when I try to add my value with EA.

The problems seems to be more on the software EA than my database mysql, there is a setting in EA to accept more text ?
Title: Re: [EA15] Too long initialization value for an attribute
Post by: qwerty on May 10, 2023, 10:21:08 pm
Well, no. Seems they have a length check prior to sending it to the DB. That's not the case for (some) other fields. You will have to send a feature request. But don't expect any change soon.

q.