From b5172fcdb7050c9ac7f94a40fd2076bd21d6228f Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 11 Aug 2025 10:15:12 -0400 Subject: [PATCH] doc fixes Change-Id: Iee65f09ea17bfa7a39fe3da05f22007f92b76f29 --- doc/build/changelog/unreleased_20/12711.rst | 2 +- doc/build/core/connections.rst | 2 +- lib/sqlalchemy/engine/interfaces.py | 2 +- lib/sqlalchemy/sql/base.py | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/build/changelog/unreleased_20/12711.rst b/doc/build/changelog/unreleased_20/12711.rst index f39a3b1ed1..fce567f775 100644 --- a/doc/build/changelog/unreleased_20/12711.rst +++ b/doc/build/changelog/unreleased_20/12711.rst @@ -3,6 +3,6 @@ :tickets: 12711 Extended :class:`_oracle.VECTOR` to support sparse vectors. This update - introduces :class:_oracle.VectorStorageType to specify sparse or dense + introduces :class:`_oracle.VectorStorageType` to specify sparse or dense storage and added :class:`_oracle.SparseVector`. Pull request courtesy Suraj Shaw. diff --git a/doc/build/core/connections.rst b/doc/build/core/connections.rst index e1c25474e5..86e27a280e 100644 --- a/doc/build/core/connections.rst +++ b/doc/build/core/connections.rst @@ -544,7 +544,7 @@ When seeking this pattern, it should be preferred to set AUTOCOMMIT engine wide using the :paramref:`.create_engine.isolation_level` so that pooled connections are permanently set in autocommit mode. The SQLAlchemy connection pool as well as the :class:`.Connection` will still seek to invoke the DBAPI -``.rollback()`` method upon connection :term:`reset`, as their behavior +``.rollback()`` method upon connection :term:`release`, as their behavior remains agonstic of the isolation level that's configured on the connection. As this rollback still incurs a network round trip under most if not all DBAPI drivers, this additional network trip may be disabled using the diff --git a/lib/sqlalchemy/engine/interfaces.py b/lib/sqlalchemy/engine/interfaces.py index c437a4f79b..5d7f5c9785 100644 --- a/lib/sqlalchemy/engine/interfaces.py +++ b/lib/sqlalchemy/engine/interfaces.py @@ -775,7 +775,7 @@ class Dialect(EventTarget): """the isolation that is implicitly present on new connections""" skip_autocommit_rollback: bool - """Whether or not the :paramref:`.create_engine.skip_autocommit_rollback + """Whether or not the :paramref:`.create_engine.skip_autocommit_rollback` parameter was set. .. versionadded:: 2.0.43 diff --git a/lib/sqlalchemy/sql/base.py b/lib/sqlalchemy/sql/base.py index 061b53bd9f..b016c291b0 100644 --- a/lib/sqlalchemy/sql/base.py +++ b/lib/sqlalchemy/sql/base.py @@ -1234,8 +1234,7 @@ class SyntaxExtension(roles.SyntaxExtensionRole): ) def apply_to_insert(self, insert_stmt: Insert) -> None: - """Apply this :class:`.SyntaxExtension` to an - :class:`_sql.Insert`""" + """Apply this :class:`.SyntaxExtension` to an :class:`_sql.Insert`""" raise NotImplementedError( f"Extension {type(self).__name__} cannot be applied to insert" ) -- 2.47.3