diff options
| author | Jason Kirtland <jek@discorporate.us> | 2008-03-04 21:35:15 +0000 |
|---|---|---|
| committer | Jason Kirtland <jek@discorporate.us> | 2008-03-04 21:35:15 +0000 |
| commit | 70d8a9c7a619da25e80e0cb5ff3189542d0e23ca (patch) | |
| tree | 97e8edf2e49f3a3e6c2bd7e9f8dc49a2db1f4582 /lib/sqlalchemy/sql | |
| parent | 793b7c2e6b177a9f6653dc36600f1e5bea051a96 (diff) | |
| download | sqlalchemy-70d8a9c7a619da25e80e0cb5ff3189542d0e23ca.tar.gz | |
- Updated exception messaging for r4220
Diffstat (limited to 'lib/sqlalchemy/sql')
| -rw-r--r-- | lib/sqlalchemy/sql/expression.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 9fb0e596a..8e2a13e7c 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -1001,11 +1001,11 @@ class ClauseElement(object): e = self.bind if e is None: label = getattr(self, 'description', self.__class__.__name__) - msg = ('This %s is not bound to an Engine or Connection. ' - 'Execution can not proceed without a database to execute ' - 'against. Either execute with an explicit connection or ' - 'bind the MetaData of the underlying tables to enable ' - 'implicit execution.') % label + msg = ('This %s is not bound and does not support direct ' + 'execution. Supply this statement to a Connection or ' + 'Engine for execution. Or, assign a bind to the statement ' + 'or the Metadata of its underlying tables to enable ' + 'implicit execution via this method.' % label) raise exceptions.UnboundExecutionError(msg) return e.execute_clauseelement(self, multiparams, params) |
