From: Mike Bayer Date: Wed, 14 May 2008 22:21:38 +0000 (+0000) Subject: raise NotImplemented for begin_nested() X-Git-Tag: rel_0_5beta1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=746bd51c48be8cce6cad2aef11bb32b6859db732;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git raise NotImplemented for begin_nested() --- diff --git a/lib/sqlalchemy/engine/threadlocal.py b/lib/sqlalchemy/engine/threadlocal.py index 91b16ed5fa..e0dae8de3c 100644 --- a/lib/sqlalchemy/engine/threadlocal.py +++ b/lib/sqlalchemy/engine/threadlocal.py @@ -113,7 +113,10 @@ class TLConnection(base.Connection): def begin_twophase(self, xid=None): return self.session.begin_twophase(xid=xid) - + + def begin_nested(self): + raise NotImplementedError("SAVEPOINT transactions with the 'threadlocal' strategy") + def close(self): if self.__opencount == 1: base.Connection.close(self) @@ -192,6 +195,9 @@ class TLEngine(base.Engine): def begin_twophase(self, **kwargs): return self.session.begin_twophase(**kwargs) + + def begin_nested(self): + raise NotImplementedError("SAVEPOINT transactions with the 'threadlocal' strategy") def begin(self, **kwargs): return self.session.begin(**kwargs)