Re: Looking for an update foo set bar = bar + 1 solution for WO
Re: Looking for an update foo set bar = bar + 1 solution for WO
- Subject: Re: Looking for an update foo set bar = bar + 1 solution for WO
- From: Randy Wigginton <email@hidden>
- Date: Fri, 17 Aug 2007 10:15:46 -0700
I've implemented this with raw SQL; I could not find an easier way.
In particular, I could not find any manner in which WO helped with
this use case. If you happen to be using MySQL, the last_insert_id()
function is your friend. If Oracle, use the "returns" sql.
On Aug 16, 2007, at 2:53 PM, Chuck Hill wrote:
I recall someone making something that did this, but now I can't
find it. I don't even recall how it worked. What it did was
allow WO to update an attribute of a entity using bar = bar + 1
instead of bar = 7 so that updates from multiple sources would not
step on each other.
Does this sound familiar to anyone?
Thanks!
Chuck
--
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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