From: Mike Bayer Date: Thu, 16 Aug 2012 14:02:41 +0000 (-0400) Subject: add a note, no autoflush with execute, [ticket:2550] X-Git-Tag: rel_0_7_9~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd9f64453225132cfaa9771d832332dd4282410;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add a note, no autoflush with execute, [ticket:2550] --- 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