diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2013-05-26 07:46:16 -0700 |
|---|---|---|
| committer | mike bayer <mike_mp@zzzcomputing.com> | 2013-05-26 07:46:16 -0700 |
| commit | bfc948e44b15930e566d4afd4340570099af309b (patch) | |
| tree | 84cee5cc407d63c633e88a21c4010834a4c41d03 /lib/sqlalchemy | |
| parent | 07d200166aa44532e41ac82640eb372f92b00b9f (diff) | |
| parent | 3406deac19e5f86ce4d09b8acd6f4aff433206c9 (diff) | |
| download | sqlalchemy-bfc948e44b15930e566d4afd4340570099af309b.tar.gz | |
Merge pull request #1 from cjw296/small-fixes
Small fixes
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/schema.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/sql/expression.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index 9a07b9de4..f894e6c31 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -2007,7 +2007,7 @@ class Constraint(SchemaItem): pass raise exc.InvalidRequestError( "This constraint is not bound to a table. Did you " - "mean to call table.add_constraint(constraint) ?") + "mean to call table.append_constraint(constraint) ?") def _set_parent(self, parent): self.parent = parent diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 7846ac3b2..3644cabc3 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -2485,9 +2485,9 @@ class ColumnCollection(util.OrderedProperties): existing = self[key] if not existing.shares_lineage(value): util.warn('Column %r on table %r being replaced by ' - 'another column with the same key. Consider ' + '%r , which has the same key. Consider ' 'use_labels for select() statements.' % (key, - getattr(existing, 'table', None))) + getattr(existing, 'table', None), value)) self._all_cols.remove(existing) # pop out memoized proxy_set as this # operation may very well be occurring |
