• 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: EntityModeler - adding an entity index generates incorrect SQL for MySQL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EntityModeler - adding an entity index generates incorrect SQL for MySQL


  • Subject: Re: EntityModeler - adding an entity index generates incorrect SQL for MySQL
  • From: Chuck Hill <email@hidden>
  • Date: Sun, 8 Mar 2009 22:34:31 -0700


On Mar 8, 2009, at 10:02 PM, J Stephanos wrote:

Once you add a index in EntityModeler (Entity Modeler/WOLips 3.4.5693) this is what is generated:

CREATE INDEX stateCode_idx FOR State (stateCode);

But the correct SQL for MySQL (5.1) is:

CREATE INDEX stateCode_idx1 ON State (stateCode);

After this manual correction, the index gets created fine.
BTW, I didn't see any index creation code in migrations.

My conclusion after last trying EOF based indexes is that this functionality is a great idea, but not yet fully implemented and supported in either WebObjects or Wonder. It is possible that Wonder could be extended to fill in the blanks. Otherwise, wait for a future version of WO...


Chuck




--JSt

http://dev.mysql.com/doc/refman/5.0/en/create-index.html

-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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: 
 >EntityModeler - adding an entity index generates incorrect SQL for MySQL (From: J Stephanos <email@hidden>)

  • Prev by Date: EntityModeler - adding an entity index generates incorrect SQL for MySQL
  • Next by Date: AjaxUpdateContainer successive updates + Deadlock
  • Previous by thread: EntityModeler - adding an entity index generates incorrect SQL for MySQL
  • Next by thread: AjaxUpdateContainer successive updates + Deadlock
  • Index(es):
    • Date
    • Thread