--- schema.py 2009-11-04 13:27:37.124466356 +0200 +++ schema.py____ 2009-11-04 13:27:21.486350738 +0200 @@ -909,7 +909,17 @@ def copy(self, schema=None): """Produce a copy of this ForeignKey object."""
- return ForeignKey(self._get_colspec(schema=schema)) + return ForeignKey( + self._get_colspec(schema=schema), + constraint=self.constraint, + use_alter=self.use_alter, + name=self.name, + onupdate=self.onupdate, + ondelete=self.ondelete, + deferrable=self.deferrable, + initially=self.initially, + link_to_name=self.link_to_name + ) def _get_colspec(self, schema=None): if schema: @@ -1494,7 +1504,10 @@ name=self.name, onupdate=self.onupdate, ondelete=self.ondelete, + deferrable=self.deferrable, + initially=self.initially, + link_to_name=self.link_to_name ) class PrimaryKeyConstraint(ColumnCollectionConstraint): --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---