On Thu, 2003-07-10 at 20:28, Ian Bicking wrote:
> On Thu, 2003-07-10 at 10:06, Matt Goodall wrote:
> > Is the transaction support working in 0.4 and CVS? I just tried the
> > following:
> > conn = PostgresConnection(...)
> > trans = conn.transaction()
> > print Person(1, trans)
> > and got "AttributeError: 'Transaction' object has no attribute 'cache'"
> > A quick look at the code implies that the Person ctor was expecting a
> > connection, not a transaction.
> No, I just extended the DBConnection interface to include a cache, and
> forgot to extend Transaction too.
Ah, that would explain it ;-).
> I added this fix to CVS, but my transaction test I added isn't working
> like I would think it should. Could you look at it?
I just updated from CVS and the problem is still occurring. I also can't
find the transaction test you mention.
> (Maybe I have to turn off autocommit or something...)
Almost certainly, PostgreSQL and SQLite both have autocommit on by
Matt Goodall, Pollenation Internet Ltd