]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
use the stack to get the insert statement in on conflict
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Sep 2017 16:57:40 +0000 (12:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Sep 2017 16:58:55 +0000 (12:58 -0400)
commita14e5c42ca78435e5fe6ada35796d6fcf14be32e
treeaf87906115b1d4a6b2fdc23513a6c8bb5597afdf
parent21ca9b50c794c58df476300206aefff46511909d
use the stack to get the insert statement in on conflict

Fixed bug in Postgresql :meth:`.postgresql.dml.Insert.on_conflict_do_update`
which would prevent the insert statement from being used as a CTE,
e.g. via :meth:`.Insert.cte`, within another statement.

Change-Id: Ie20972a05e194290bc9d92819750845872949ecc
Fixes: #4074
(cherry picked from commit 70516536107a44230762206342c51239c5d85417)
doc/build/changelog/unreleased_11/4074.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_compiler.py