[sqlalchemy] Re: Copy of a table with a different name

2008-07-17 Thread Artur Siekielski
send along a test case that includes whatever ForeignKey references to/ from ObjectType might be involved here.    My initial guess might be   to lose the constraints.copy() section since each Column.copy() will   contain a copied ForeignKey inside of it.  copy() has only been used   by the

[sqlalchemy] Re: Copy of a table with a different name

2008-06-12 Thread Michael Bayer
On Jun 12, 2008, at 4:05 AM, Artur Siekielski wrote: Hi. I want to have two Table definitions in one MetaData which are the same except the name of the second one has SND_ prefix. To avoid duplication of schema definition I looked at Table.tometadata() source and created the following