Set collection is now compatible with merge(),
fixes [ticket:1352].
+- sql
+ - Fixed __repr__() and other _get_colspec() methods on
+ ForeignKey constructed from __clause_element__() style
+ construct (i.e. declarative columns). [ticket:1353]
+
- mssql
- Corrected problem with information schema not working with a
binary collation based database. Cleaned up information
schema since it is only used by mssql now. [ticket:1343]
+>>>>>>> .r5862
0.5.3
=====
- orm
return schema + "." + self.column.table.name + "." + self.column.key
elif isinstance(self._colspec, basestring):
return self._colspec
+ elif hasattr(self._colspec, '__clause_element__'):
+ _column = self._colspec.__clause_element__()
else:
- return "%s.%s" % (self._colspec.table.fullname, self._colspec.key)
+ _column = self._colspec
+
+ return "%s.%s" % (_column.table.fullname, _column.key)
+
target_fullname = property(_get_colspec)
def references(self, table):
# longer the case
sa.orm.compile_mappers()
+ eq_(str(Address.user_id.property.columns[0].foreign_keys[0]), "ForeignKey('users.id')")
+
Base.metadata.create_all()
u1 = User(name='u1', addresses=[
Address(email='one'),