]> 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:48:00 +0000 (16:48 -0500)
commit09e999808a5272a1426a7c00e3a4f27b2e27b8d7
treecdc8f16b86d19fdc2c95496c8ad12e8f226ecb03
parentbead576769e655481cddb4623fad4bfa0aaccdda
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
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