]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
apply quoting to "ON CONSTRAINT" symbol
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 30 Jun 2021 13:22:00 +0000 (09:22 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 30 Jun 2021 13:23:02 +0000 (09:23 -0400)
commitdee57477882f8876fd97071a790fe3d3ee2164c5
tree7ad513edae9307cd4e3c8194ab7ee2899f30b9ac
parent67edf8e376d4bf4baf5944b88dff1cb073e9ef72
apply quoting to "ON CONSTRAINT" symbol

Fixed issue in :meth:`_postgresql.Insert.on_conflict_do_nothing` and
:meth:`_postgresql.Insert.on_conflict_do_update` where the name of a unique
constraint passed as the ``constraint`` parameter would not be properly
quoted if it contained characters which required quoting.

Fixes: #6696
Change-Id: I4ffca9b8c72cef4ed39e2de96831ccc11a620422
doc/build/changelog/unreleased_14/6696.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_compiler.py