Book a Demo

Author Topic: [EA15] Too long initialization value for an attribute  (Read 3075 times)

YanDJ

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
[EA15] Too long initialization value for an attribute
« 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.
« Last Edit: May 10, 2023, 12:59:22 am by YanDJ »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: [EA15] Too long initialization value for an attribute
« Reply #1 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.

YanDJ

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: [EA15] Too long initialization value for an attribute
« Reply #2 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 ?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: [EA15] Too long initialization value for an attribute
« Reply #3 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.