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

2021-01-18 Thread horema...@gmail.com
194, in __getitem__ return self._data[key] KeyError: "daterange(valid_from_date, valid_thru_date, '[]')" short test summary info FAILED test/sql/test_metadata.py::ToMetaDataExcludeConstraint::test_copy - KeyError: "daterange(va

[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