summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/engine/threadlocal.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/threadlocal.py b/lib/sqlalchemy/engine/threadlocal.py
index 91b16ed5f..e0dae8de3 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)