[sqlalchemy] Re: Copy of ExcludeConstraint's as part of tometadata fails with column-based expressions.

2021-01-18 Thread Gord Thompson
Issue created: https://github.com/sqlalchemy/sqlalchemy/issues/5850 Thanks for reporting this. On Monday, January 18, 2021 at 8:16:41 AM UTC-7 horema...@gmail.com wrote: > Here's the stacktrace of the test case's failure: > > === FAILURES >

[sqlalchemy] Re: Copy of ExcludeConstraint's as part of tometadata fails with column-based expressions.

2021-01-18 Thread horema...@gmail.com
Here's the stacktrace of the test case's failure: === FAILURES _ ToMetaDataExcludeConstraint.test_copy _ Traceback (most recent call last):

[sqlalchemy] Copy of ExcludeConstraint's as part of tometadata fails with column-based expressions.

2021-01-18 Thread horema...@gmail.com
Hi, we noticed that the copying of ExcludeConstraints as part of a tometadata invocation fails for constraints with column-based expressions. The copy implementation of ExcludeConstraint passes the strname's of its columns to the construction of the new constraint, which is fine for regular co