On Tue, Mar 14, 2006 at 06:50:14PM +0300, Oleg Broytmann wrote:
> On Thu, Mar 09, 2006 at 02:01:58PM +0100, David Faure wrote:
> > OK, I have reworked the support for "select for update" so that it now
> > looks like
> > obj.select(forUpdate = True)
> >
> > Patch and testcase attached.
>
> You have forgotten to patch (of forgot to include diff) sresults.py. And
> your test didn't catch that.
Oops, sorry, my mistake. SelectResults just passess self.ops to the
dbConnection.
> for i in xrange(100):
> print i
>
> try:
> agg = Aggregates.select(connection = t, forUpdate =
> True).getOne()
> except:
> agg = Aggregates(total = 0, connection = t)
I have a problem converting the test to SQLObject. In the beginning the
test database is always empty so .select() always raises a "not found"
exception.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss