From dcd9f64453225132cfaa9771d832332dd4282410 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 16 Aug 2012 10:02:41 -0400 Subject: [PATCH] add a note, no autoflush with execute, [ticket:2550] --- lib/sqlalchemy/orm/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index 0fbd721af6..eb03124724 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -804,6 +804,8 @@ class Session(object): with no active transaction will produce a result that auto-closes the underlying :class:`.Connection`. + The :meth:`.Session.execute` method does *not* invoke autoflush. + :param clause: A :class:`.ClauseElement` (i.e. :func:`~.sql.expression.select`, :func:`~.sql.expression.text`, etc.) or string SQL statement to be executed. The clause -- 2.47.2