summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-08-02 11:34:35 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-08-02 11:34:35 -0400
commit37b8c5e755cefd9ae0fdf6816dae09b519be3b06 (patch)
treecb512bfd5b4dc0fc699d3de6aad212205aca8b8a /lib/sqlalchemy/engine
parent44f54bf4c0056e747dd62544911886cd43647ca0 (diff)
downloadsqlalchemy-37b8c5e755cefd9ae0fdf6816dae09b519be3b06.tar.gz
fix up SAVEPOINT docs
these contained a factual error that the entire session is expired, which is no longer the case (I can't find exactly when this was changed). Additionally, added a PostgreSQL specific example w/ IntegrityError as this is the most common case for this. Tried to tighten up other language and make it as clear as possible. Change-Id: I39160e7443964db59d1d5a2e0616084767813eea
Diffstat (limited to 'lib/sqlalchemy/engine')
-rw-r--r--lib/sqlalchemy/engine/base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index aafa94047..2b9cf602a 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -891,6 +891,8 @@ class Connection(ConnectionEventsTarget, inspection.Inspectable["Inspector"]):
:meth:`_engine.Connection.begin`
+ :ref:`session_begin_nested` - ORM support for SAVEPOINT
+
"""
if self._transaction is None:
self._autobegin()