]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fixed bug where Column with redefined "key" property wasnt getting
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Jun 2006 16:46:38 +0000 (16:46 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 14 Jun 2006 16:46:38 +0000 (16:46 +0000)
type conversion happening in the ResultProxy [ticket:207]

CHANGES
lib/sqlalchemy/ansisql.py

diff --git a/CHANGES b/CHANGES
index 6e4dfbd07c3513b9224fe9d56d4f8755551eb904..6e50343ab6fb325580a2ce63a2eecb1ef0cfaa67 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,8 @@
 auto-foreignkey detection [ticket:151]
 - fixed bug where tables with schema names werent getting indexed in
 the MetaData object properly
+- fixed bug where Column with redefined "key" property wasnt getting
+type conversion happening in the ResultProxy [ticket:207]
 
 0.2.2
 - big improvements to polymorphic inheritance behavior, enabling it
index f1030b835458adc802fc99a498f281b08ffd3dcd..cdd86044021448a492a8afc8e01799528bbb4b41 100644 (file)
@@ -168,7 +168,7 @@ class ANSICompiler(sql.Compiled):
         if len(self.select_stack):
             # if we are within a visit to a Select, set up the "typemap"
             # for this column which is used to translate result set values
-            self.typemap.setdefault(column.key.lower(), column.type)
+            self.typemap.setdefault(column.name.lower(), column.type)
         if column.table is None or not column.table.named_with_column():
             self.strings[column] = column.name
         else: