Column.copy skip the doc attribute

Issue #2028 resolved
Former user created an issue

The "doc" parameter is not copied by Column.copy.

Here is a patch against the rel_0_6 branch :

diff -r d239319ff10967cd07929a963092612badcca5d2 lib/sqlalchemy/schema.py
--- a/lib/sqlalchemy/schema.py  Tue Jan 18 17:17:29 2011 -0500
+++ b/lib/sqlalchemy/schema.py  Thu Jan 20 15:48:54 2011 +0100
@@ -902,6 +902,7 @@
                 unique = self.unique, 
                 quote=self.quote, 
                 index=self.index, 
+                doc=self.doc,
                 autoincrement=self.autoincrement, 
                 default=self.default,
                 server_default=self.server_default,

Comments (2)

  1. Log in to comment