Skip to content

Commit e2bda66

Browse files
committed
fix session cursor result tip
in 2.0, we are usually not returning CursorResult for Session.execute(). References: #12813 Change-Id: I19049b57790b5429ce7890c86e87b93c07a3f1d2
1 parent b8c5fd8 commit e2bda66

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

doc/build/tutorial/data_update.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,9 @@ is available from the :attr:`_engine.CursorResult.rowcount` attribute:
291291
specific to the DBAPI ``cursor`` object. An instance of this subclass is
292292
returned when a statement is invoked via the
293293
:meth:`_engine.Connection.execute` method. When using the ORM, the
294-
:meth:`_orm.Session.execute` method returns an object of this type for
295-
all INSERT, UPDATE, and DELETE statements.
294+
:meth:`_orm.Session.execute` method will normally **not** return this type
295+
of object, unless the given query uses only Core :class:`.Table` objects
296+
directly.
296297

297298
Facts about :attr:`_engine.CursorResult.rowcount`:
298299

0 commit comments

Comments
 (0)