]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
accommodate for cloned bindparams w/ maintain_key
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Jul 2021 14:10:28 +0000 (10:10 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Jul 2021 14:12:04 +0000 (10:12 -0400)
commit1ccaac8293ee69f22dd01766a26c3ca7893c6a83
treed4c36c213e71e317cf2253455a6b9a478cf2e604
parentc6b1d24fe71c22e4d2117d084f06df3597671985
accommodate for cloned bindparams w/ maintain_key

Fixed issue where a bound parameter object that was "cloned" would cause a
name conflict in the compiler, if more than one clone of this parameter
were used at the same time in a single statement. This could occur in
particular with things like ORM single table inheritance queries that
indicated the same "discriminator" value multiple times in one query.

Fixes: #6824
Change-Id: Iba7a786fc5a2341ff7d07fc666d24ed790ad4fe8
doc/build/changelog/unreleased_14/6824.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
test/orm/inheritance/test_single.py
test/sql/test_compiler.py