diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-13 23:43:31 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-13 23:43:31 -0500 |
commit | 27db59b337b9918aada537d3049fa7973f99f1f2 (patch) | |
tree | eae518ddca42b1a9977312f3779b80818b4c429f /lib/sqlalchemy | |
parent | f0e19297eeaa5d44a38766895bfb918e8a6db53f (diff) | |
download | sqlalchemy-27db59b337b9918aada537d3049fa7973f99f1f2.tar.gz |
Fixed bug whereby using "key" with Column
in conjunction with "schema" for the owning
Table would fail to locate result rows due
to the MSSQL dialect's "schema rendering"
logic's failure to take .key into account.
Also in 0.7.10. [ticket:2607]
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/dialects/mssql/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/mssql/base.py b/lib/sqlalchemy/dialects/mssql/base.py index f9b7b944c..09db05e1f 100644 --- a/lib/sqlalchemy/dialects/mssql/base.py +++ b/lib/sqlalchemy/dialects/mssql/base.py @@ -855,12 +855,11 @@ class MSSQLCompiler(compiler.SQLCompiler): if t is not None: converted = expression._corresponding_column_or_error( t, column) - if add_to_result_map is not None: add_to_result_map( column.name, column.name, - (column, ), + (column, column.name, column.key), column.type ) |