[DB-SIG] Last round for DB API 1.1

Andy Dustman adustman@comstar.net
Thu, 18 Mar 1999 14:13:24 -0500 (EST)


On Thu, 18 Mar 1999, Greg Stein wrote:

> The *very* strong preference should go towards not implementing
> .rollback() (by omission or dynamically making it (un)available).
> 
> This will allow client software to do a hasattr(), rather than attempt a
> rollback only to find they couldn't... thus leaving their database
> screwed.

I was somewhat ambivalent about what exception should be raised, but I
think this is the best argument. Plus, it means I get to delete a line of
code:)

    def rollback(self): raise OperationalError, "transactions not supported"

-- 
Andy Dustman  (ICQ#32922760)    You should always say "spam" and "eggs"
ComStar Communications Corp.                 instead of "foo" and "bar"
(706) 549-7689 | PGP KeyID=0xC72F3F1D   in Python examples. (Mark Lutz)