From 07cc4ecf05aeb746a54ce51671d7a4b2669141e2 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 25 Feb 2013 19:27:07 -0500 Subject: - A clear error message is emitted if an event handler attempts to emit SQL on a Session within the after_commit() handler, where there is not a viable transaction in progress. [ticket:2662] - rework how SessionTransaction maintains state, using symbols instead. - add lots of notes and cross-linking for session events. - add a link to :func:`.select()` within :meth:`.FromClause.select`. --- lib/sqlalchemy/sql/expression.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/expression.py') diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 90837f4ab..490004e39 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -2604,7 +2604,14 @@ class FromClause(Selectable): **params) def select(self, whereclause=None, **params): - """return a SELECT of this :class:`.FromClause`.""" + """return a SELECT of this :class:`.FromClause`. + + .. seealso:: + + :func:`~.sql.expression.select` - general purpose + method which allows for arbitrary column lists. + + """ return select([self], whereclause, **params) -- cgit v1.2.1