treatment of Ambiguous Column

Issue #657 resolved
Former user created an issue

in engine\base.py

if self.__props.setdefault(colname.lower(), rec) is not rec: self.__propscolname.lower() = (ResultProxy.AmbiguousColumn(colname), 0)

sets the __props entry for ambiguous column to be the above, which breaks the code in various places where a three tuple is expected

ammending the above to be if self.__props.setdefault(colname.lower(), rec) is not rec: type = ResultProxy.AmbiguousColumn(colname) self.__propscolname.lower() = (type, type.dialect_impl(self.dialect), i)

will cause appropriate exception to be thrown when ambiguous columns are accessed.

Comments (2)

  1. Log in to comment