bug, fixed in r2334. not much of a workaround other than trying to append the constraints manually (for which there isnt really a public API). On Feb 17, 2007, at 4:47 AM, Andreas Jung wrote:
> I have a Table instance with a UniqueConstraint. SA fails while > creating > a copy of the table using table.tometadata(). Is there a workaround? > > Andreas > > ------------- > > > Traceback (most recent call last): > File "schema.py", line 77, in ? > M.createTables() > File "schema.py", line 35, in createTables > for name, table in DB.getTables().items(): > File "/home/ajung/sandboxes/mediendb-ajung/HaufeCMS/lib/python/ > mediendb/haufe/sqlalchemy/postgres/python_wrapper.py", line 54, in > getTables > d[name] = table.tometadata(metadata) > File "/local2/HRS2/mediendb-ajung/HaufeCMS/lib/python/mediendb/ > database/schema.py", line 303, in tometadata > > File "/local2/HRS2/mediendb-ajung/HaufeCMS/lib/python/mediendb/ > database/schema.py", line 703, in copy > > NotImplementedErro > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---