]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use schema._copy_expression() fully in column collection constraints
authorGord Thompson <gord@gordthompson.com>
Mon, 25 Jan 2021 18:24:25 +0000 (11:24 -0700)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 29 Jan 2021 21:47:15 +0000 (16:47 -0500)
commit7dd3381edb15e9699d24d78caa8a1021667ce92d
tree82c79c8ab46dada276c0cfcfe0e218fd50d2c020
parentec9df97277ca4dfe7a7e7b29def0742ccd0235f8
Use schema._copy_expression() fully in column collection constraints

Fixed issue where using :meth:`_schema.Table.to_metadata` (called
:meth:`_schema.Table.tometadata` in 1.3) in conjunction with a PostgreSQL
:class:`_postgresql.ExcludeConstraint` that made use of ad-hoc column
expressions would fail to copy correctly.

Fixes: #5850
Change-Id: I062480afb23f6f60962b7b55bc93f5e4e6ff05e4
(cherry picked from commit 81896c31ffc4db081f1f2bba199a52328398a236)
doc/build/changelog/unreleased_13/5850.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/ext.py
lib/sqlalchemy/dialects/sqlite/base.py
lib/sqlalchemy/sql/schema.py
test/dialect/postgresql/test_compiler.py
test/sql/test_metadata.py