]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Explicitly state what happens if `order_by` is called more than once. (#8791)
authorEitan Mosenkis <eitan@mosenkis.net>
Mon, 14 Nov 2022 21:11:15 +0000 (23:11 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Nov 2022 21:11:15 +0000 (22:11 +0100)
commit9237bf15e612ba82555444751bd69dc2a831e7f4
treea0db20b19644f50b6f6075fee7ed87d236a635ec
parenteea0f44bbdb759368996dcdb241e837c7c809fb9
Explicitly state what happens if `order_by` is called more than once. (#8791)

* Explicitly state what happens if `order_by` is called more than once.

The existing docs cover how to clear existing `order_by` clauses but don't actually describe the behavior of calling `order_by` multiple times with different clauses.

* Also update Select.order_by.
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/selectable.py