diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-06-10 11:44:45 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2022-06-10 12:27:03 -0400 |
commit | f003360baa28f1bf65134eac2727a0fcea43d5c8 (patch) | |
tree | b2195d6057220a4808668d4d5e51a796663f8642 /lib/sqlalchemy/dialects/postgresql/asyncpg.py | |
parent | b171f5d2e488c46a664847644e65d5dc03759840 (diff) | |
download | sqlalchemy-f003360baa28f1bf65134eac2727a0fcea43d5c8.tar.gz |
remove "undefer_pks" as a strategy option
The behavior of :func:`_orm.defer` regarding primary key and "polymorphic
discriminator" columns is revised such that these columns are no longer
deferrable, either explicitly or when using a wildcard such as
``defer('*')``. Previously, a wildcard deferral would not load
PK/polymorphic columns which led to errors in all cases, as the ORM relies
upon these columns to produce object identities. The behavior of explicit
deferral of primary key columns is unchanged as these deferrals already
were implicitly ignored.
Fixes: #7495
Change-Id: I76d9252426e86619bc142667670a3df75b4f5f6a
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/asyncpg.py')
0 files changed, 0 insertions, 0 deletions