- changed milestone to 1.2
Column.copy() doesn't copy comment attribute
Issue #4087
new
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
Comments (1)
-
repo owner - Log in to comment
https://gerrit.sqlalchemy.org/525