[Sqlalchemy-tickets] Issue #4087: Column.copy() doesn't copy comment attribute (zzzeek/sqlalchemy)
Brought to you by:
zzzeek
From: Rudolf C. <iss...@bi...> - 2017-09-23 09:06:35
|
New issue 4087: Column.copy() doesn't copy comment attribute https://bitbucket.org/zzzeek/sqlalchemy/issues/4087/columncopy-doesnt-copy-comment-attribute Rudolf Cardinal: In SQLAlchemy 1.2.0b2, the `Column.copy()` function doesn't copy the new `comment` attribute; it would need an additional `comment=self.comment` line in its call to `self._constructor()`. Reproduction: from sqlalchemy import Column, Integer a = Column("a", Integer, comment="hello") b = a.copy() a.comment # 'hello' b.comment # None |