Book a Demo

Author Topic: MySQL and VARCHAR limitation  (Read 3222 times)

eloudsa

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
MySQL and VARCHAR limitation
« on: October 25, 2007, 10:51:28 am »
Hello,

I am a brand new user of EA.

I am designing a database model with EA 7.0.817.

The target database for this database model is MySQL 5.0.41.

I would like to define columns with a VARCHAR greater than 255 characters.

Is someone can help me how to configure EA to remove the limitation of 255 characters?

Thanks

Said

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: MySQL and VARCHAR limitation
« Reply #1 on: October 25, 2007, 01:29:01 pm »
Save the following code as an xml file....

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<EAPatch>
   <EAPatch.content>
       <PatchDescription>This patch will allow a maximum length of 65,535 for the MySQL VARCHAR datatype.</PatchDescription>
       <PatchQuery> SELECT Count(*) AS NumRecords FROM t_datatypes WHERE Type = 'DDL' AND ProductName = 'MySql' AND DataType = 'VARCHAR';
       </PatchQuery>
       <PatchSQL> UPDATE t_datatypes SET MaxLen = 65535 WHERE Type = 'DDL' AND ProductName = 'MySql' AND DataType = 'VARCHAR'
       </PatchSQL>
   </EAPatch.content>
</EAPatch>


Open your model and run the patch from Tools | Run Patch...

HTH

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: MySQL and VARCHAR limitation
« Reply #2 on: October 25, 2007, 02:58:18 pm »
Thanks Henk,

Will this be handled by an update in the next build or so?

David
No, you can't have it!

eloudsa

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: MySQL and VARCHAR limitation
« Reply #3 on: October 26, 2007, 01:14:54 am »
Thank you very much Henk.

The patch works properly.

As David, I guess that this patch will be delivered in a future update of EA?

Said