]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Fix ExcludeConstraint with func.
authorFederico Caselli <cfederico87@gmail.com>
Fri, 28 Apr 2023 19:24:43 +0000 (21:24 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Fri, 28 Apr 2023 19:24:43 +0000 (21:24 +0200)
commitac0785dc3e56ebe9fc8caa78cd9c564d5e796da3
tree2b5b0f58069a9ac28dba9f622e086f267c8df959
parentabd175bf86b1091fe444b91c4f98dc9ea97ff723
Fix ExcludeConstraint with func.

Fix autogenerate issue with PostgreSQL :class:`.ExcludeConstraint`
that included sqlalchemy functions. The function text was previously
rendered as a plain string without surrounding with ``text()``.

Fixes: #1230
Change-Id: I0d59e04d5a64132ed86f92a27e4247ac9703f3e0
alembic/ddl/postgresql.py
docs/build/unreleased/1230.rst [new file with mode: 0644]
tests/test_postgresql.py