Re: Select for update

[prev] [thread] [next] [Date index for 2004/07/19]

From: Edward J. Sabol
Subject: Re: Select for update
Date: 14:16 on 19 Jul 2004
Ian McDonald wrote:
> Hi, I'd like to make some of my units of work (collections of updates
> across multiple tables) atomic, and plan to do this by issuing "select
> ... for update" commands instead of simple selects.

Read <http://www.class-dbi.com/cgi-bin/wiki/index.cgi?AtomicUpdates>;
for the best practice in implementing atomic anything.

> Am I right to think I need to overload private methods or use add_sql
> for this?

You mean set_sql(), right? Anyway, that or add_constructor() as Jason Scott
Gessner suggested in the other response. And wrap it all inside of a
do_transaction() (see the above Wiki page).

Select for update
Ian McDonald-ONLINE 13:15 on 19 Jul 2004

Re: Select for update
jason scott gessner 13:27 on 19 Jul 2004

Re: Select for update
Edward J. Sabol 14:16 on 19 Jul 2004

Re: Select for update
Perrin Harkins 14:22 on 19 Jul 2004

Re: Select for update
Edward J. Sabol 15:11 on 19 Jul 2004

RE: Select for update
Ian McDonald-ONLINE 16:08 on 19 Jul 2004

RE: Select for update
Perrin Harkins 16:55 on 19 Jul 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52