Book a Demo

Author Topic: MySQL and VARCHAR > 255 character  (Read 3592 times)

awi

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
MySQL and VARCHAR > 255 character
« on: March 16, 2010, 11:24:37 pm »
Hi
I try to create a VARCHAR-field in a db-model. I selected as db-type MySQL and now I can create only VARCHAR <= 255 character. But I want create a VARCHAR-field with 1000 character.
I found in the www that older MySQL-versions could max. 255 character, but newer versions over 65thousand.
Have somebody a idee what I can do that EA acept more then 255 character?
Thanks for any help.
andreas

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: MySQL and VARCHAR > 255 character
« Reply #1 on: March 17, 2010, 09:58:01 am »
Hi Awi,

I'd export the datatypes using Tools|Export Reference Data.  Then I'd edit the relevant portion of the XML.  Finally I'd re-import the changed XML.

If you feel braver, you can edit the t_datatypes table directly.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

awi

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: MySQL and VARCHAR > 255 character
« Reply #2 on: March 18, 2010, 06:02:21 am »
Hi Paolo

Thank you very much. That works fine!  ;)
I changed the xml and after restart EA it was ok.

Andreas