• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Migration failed, was : defining child entities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Migration failed, was : defining child entities


  • Subject: Re: Migration failed, was : defining child entities
  • From: David Avendasora <email@hidden>
  • Date: Wed, 12 Aug 2009 06:20:38 -0400


On Aug 12, 2009, at 3:08 AM, Gustavo Pizano wrote:

MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Area(descr VARCHAR(255) NOT NULL, id INTEGER NOT NULL, name VARCHAR(16) NOT NULL' at line 1

when trying to ccreate the table Area, which entity has a relationship to itself as Area< - >> Area with areaID as the FK. I remove that relationship and still Im havin the same error.

Hey Gustavo,

Can you turn on the EOAdapter Debugging so we can see the exact SQL that is being passed to the DB? (You can find it in the Run Configuration WO tab. Set -EOAdapterDebugEnabled to true.

It looks like there is something wrong with the SQL that is getting generated, but it's hard to tell with just the fragment in the exception.

Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Migration failed, was : defining child entities (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Session... when are they created?
  • Next by Date: Re: Migration failed, was : defining child entities
  • Previous by thread: Migration failed, was : defining child entities
  • Next by thread: Re: Migration failed, was : defining child entities
  • Index(es):
    • Date
    • Thread