]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
we probably dont need ORDER BY for selectin_polymorphic
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Jan 2026 16:39:45 +0000 (11:39 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 2 Jan 2026 14:58:19 +0000 (09:58 -0500)
commit51cc72641ec27d3861bc55dd7f80e34d53f7f179
tree9747ccab4ca71ae02b93a693c6555cd0825d4a46
parent0a1be6dcfab7b17613835248a368e6b822a53319
we probably dont need ORDER BY for selectin_polymorphic

Removed the ``ORDER BY`` clause from queries generated by
:func:`_orm.selectin_polymorphic` and the
:paramref:`_orm.Mapper.polymorphic_load` parameter set to ``"selectin"``.
The ``ORDER BY`` clause appears to have been an unnecessary implementation
artifact.

Fixes: #13060
Change-Id: If563844cbca54f507421d5dcd1ab67afdabb10fc
doc/build/changelog/migration_12.rst
doc/build/changelog/unreleased_21/13060.rst [new file with mode: 0644]
doc/build/orm/queryguide/inheritance.rst
lib/sqlalchemy/orm/mapper.py
test/orm/inheritance/test_poly_loading.py