]> 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)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 14 Nov 2022 21:12:43 +0000 (22:12 +0100)
commitb5ee0c7ff566291ce5823ba3e0ea624946c966b5
tree84d1dcbb5a89893a1000a6bfc457add8fa27b144
parent3ea8273c7926d19d4745bf5a859927838fa0783c
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.

(cherry picked from commit 9237bf15e612ba82555444751bd69dc2a831e7f4)
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/selectable.py