diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-02-25 19:27:07 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-02-25 19:27:07 -0500 |
commit | 07cc4ecf05aeb746a54ce51671d7a4b2669141e2 (patch) | |
tree | 45d320b5157083f0e8d6d927f36bf796b48d16a7 /lib/sqlalchemy/sql/expression.py | |
parent | 95297c35442e483bb98b5a4edb677bb168064f5e (diff) | |
download | sqlalchemy-07cc4ecf05aeb746a54ce51671d7a4b2669141e2.tar.gz |
- 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`.
Diffstat (limited to 'lib/sqlalchemy/sql/expression.py')
-rw-r--r-- | lib/sqlalchemy/sql/expression.py | 9 |
1 files changed, 8 insertions, 1 deletions
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) |