summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/sync.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-05-07 11:15:36 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-05-07 11:15:36 -0400
commitde9c030f5c09e0c1f3a61762dc2380662f8889ee (patch)
treebebe0e337c908000a06e1339e406875b18bf00c4 /lib/sqlalchemy/orm/sync.py
parentb918c4876103315227cd1f5f54b309f1cec6ceca (diff)
downloadsqlalchemy-de9c030f5c09e0c1f3a61762dc2380662f8889ee.tar.gz
- Fixed the error message emitted for "can't
execute syncrule for destination column 'q'; mapper 'X' does not map this column" to reference the correct mapper. [ticket:2163]. Also in 0.6.8. - test/orm/test_sync.py covers orm/sync.py 100%
Diffstat (limited to 'lib/sqlalchemy/orm/sync.py')
-rw-r--r--lib/sqlalchemy/orm/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/sync.py b/lib/sqlalchemy/orm/sync.py
index 15d35d2a5..5ebd44fb9 100644
--- a/lib/sqlalchemy/orm/sync.py
+++ b/lib/sqlalchemy/orm/sync.py
@@ -95,7 +95,7 @@ def _raise_col_to_prop(isdest, source_mapper, source_column, dest_mapper, dest_c
"Can't execute sync rule for destination column '%s'; "
"mapper '%s' does not map this column. Try using an explicit"
" `foreign_keys` collection which does not include this column "
- "(or use a viewonly=True relation)." % (dest_column, source_mapper)
+ "(or use a viewonly=True relation)." % (dest_column, dest_mapper)
)
else:
raise exc.UnmappedColumnError(