Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot update imported DB entries; can update new ones



On Sep 30, 2004, at 3:12 AM, Jeremy Matthews wrote:

However, when I take an entry that I imported directly into MySQL (via CocoaMySQL), it will display and delete fine. And when I click on the "Editing" link I setup, it passes the values accordingly. But then, after changing some values, I try to save and hit a WO error message:

com.webobjects.eoaccess.EOGeneralAdaptorException: updateValuesInRowDescribedByQualifier -- com.webobjects.jdbcadaptor.JDBCChannel method failed to update row in database

This exception is generally thrown when an optimistic locking failure has occurred. I.e., the values of the attributes used for locking in the cache (i.e., the values fetched) do not match the values of the same attributes in the database when the update is being saved. This can occur when some other process has updated the object since it was fetched by your WO process or when a rounding error occurs when the database value is converted to a possibly less precise Java value. This can happen with timestamps or floating point values. You might try excluding NSTimestamp attributes from the list of attributes used for locking in your EOModel to see whether that solves the problem.


Aloha,
Art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >cannot update imported DB entries; can update new ones (From: Jeremy Matthews <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.