Re: Error executing SQL from Entity Modeler

From: womai..ac.com
Date: Thu Aug 31 2006 - 01:40:06 EDT

  • Next message: André Koppany: "Error Opening Component in Eclipse"

    Well, for the purposes of my tutorial I will have them copy the
    generated SQL into a text file, but if this is fixable I think that
    would be A Good Thing (tm). :)

    janine

    On Aug 30, 2006, at 9:43 PM, Chuck Hill wrote:

    > This is probably a FrontBase thing. The statement
    >>> SET TRANSACTION ISOLATION LEVEL SERIALIZABLE, LOCKING PESSIMISTIC;
    > only applies until the next commit. After that you need to issue
    > it again. You may be able to do this on the connection instead of
    > in the script. I don't know, I always use scripts.
    >
    > Could that be the problem?
    >
    > Chuck
    >
    >
    >
    > On Aug 30, 2006, at 8:10 PM, Mike Schrag wrote:
    >
    >> This is almost certainly because split on ;'s and execute each
    >> line independently. Anyone know how EOModeler-proper might do
    >> this and also have the ability to trap the failed delete table
    >> statements like it does?
    >
    > I'd guess that it is committing after each one.
    >
    > Chuck
    >
    >>
    >> ms
    >>
    >> On Aug 30, 2006, at 9:20 PM, womai..ac.com wrote:
    >>
    >>> When I execute the SQL generated by Entity Modeler I get the
    >>> following error:
    >>>
    >>> java.sql.SQLException: Exception condition 384. Transaction
    >>> MUST be SERIALIZABLE, PESSIMISTIC. Do you want to cancel the
    >>> rest of the script?
    >>>
    >>> The first line of the generated SQL is
    >>>
    >>> SET TRANSACTION ISOLATION LEVEL SERIALIZABLE, LOCKING PESSIMISTIC;
    >>>
    >>> I don't see any way to influence the SQL that's generated, and I
    >>> can't edit it. I have run it from FrontBase Manager and it
    >>> doesn't generate any errors there.
    >>>
    >>> So what can I do to fix this?
    >>>
    >>> thanks,
    >>>
    >>> janine
    >>>
    >>
    >
    > --
    >
    > 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
    >
    >
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Thu Aug 31 2006 - 01:39:18 EDT