Philippe and Mike,

Version is a function name in OpenBase (and reserved word when followed by parens). So it is interpreting this as function version (). If you use a different table name you should be all set. We will take a look at the plugin and see if we can tweek this for a future release.

Please let us know if we can provide any additional help.

Best regards,

Scott Keith
OpenBase


Begin forwarded message:

Date: Wed, 3 Jan 2007 12:56:21 -0500
From: Mike Schrag <[EMAIL PROTECTED]>
Subject: Re: eomodeler and prototypes in framework
To: WebObjects-List Apple <[email protected]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=3DISO-8859-1; delsp=3Dyes; =
format=3Dflowed

This is an OpenBase bug.  Either their parser should handle this
(Which it should.) or they should modify OpenBasePlugIn to override
EOSynchronizationFactory.createTableStatementsForEntityGroup and
generate a space.  I just added a regex that adds spaces back into
the generated SQL and committed.  It will be in tonight's build.

ms

On Jan 3, 2007, at 12:42 PM, Philippe Lafoucri=E8re wrote:


On 3 janv. 07, at 18:34, Mike Schrag wrote:

Not sure I understand the bug you're seeing: "as there is no space
between the entity name and the list of attributes, one of my
entity is probably seen as a function and the script fails".  Can
you give me an example of the entity name/attribute names of a
failing entity, the SQL that's being generated from it, and the
exact error that the database is responding with?  Also, if you
can strip down your model to a small example of this problem, that
would be very helpful.

Mike, I think the problem may appear when using entities such as
"Version". The generated SQL code might look like :
Create Table Version(int .......)".

The code above is raising an error with OpenBase, Version is maybe
a reserved keyword. If you add a space between Version and the
paranthesis, the SQL script will work like a charm.
I don't know if this bug is due to OpenBase, or if it happens with
other RDMS.

Regards,
Philippe



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to