Column.copy() doesn't copy comment attribute

Issue #4087 new
Rudolf Cardinal created an issue

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)

  1. Log in to comment