]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
resolve synonyms in dictionary form of Session.get()
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 4 Nov 2022 16:48:43 +0000 (12:48 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 4 Nov 2022 16:51:42 +0000 (12:51 -0400)
commitb0885d58328137d274a2872aa47d041e1de553d6
tree21c97da61b1d09576882d33279d39c8b1ab06f69
parentb48694b380003eb41ec46861f4573d7cba3385fd
resolve synonyms in dictionary form of Session.get()

Improved "dictionary mode" for :meth:`_orm.Session.get` so that synonym
names which refer to primary key attribute names may be indicated in the
named dictionary.

Fixes: #8753
Change-Id: I56112564a5c23b51b26e01c64087cbf4399cd951
(cherry picked from commit 7b6259c0f3ae411976f8febfe41f2c5fc3490b13)
doc/build/changelog/unreleased_14/8753.rst [new file with mode: 0644]
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/session.py
test/orm/test_query.py