]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix docs for `case` expression to match new syntax (#9279)
authorAbdulhaq Emhemmed <el.ingeniero09@gmail.com>
Fri, 10 Feb 2023 21:56:30 +0000 (22:56 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Feb 2023 21:56:30 +0000 (22:56 +0100)
commitb95b22d8c0f9f26e33e1912d8ee205319fc20362
treeaa696fb467f02930ee9a2f2e7e2d0b2e3b6814b5
parent7959d30aaa1c760d8585fc9a0375b06e0dcbe4dd
Fix docs for `case` expression to match new syntax (#9279)

* Fix docs for `case` expression to match new syntax

Previously (before v1.4), the `whens` arg (when `value` is *not* used) used to be a list of
conditions (a 2 item-tuple of condition + value). From v1.4, these are passed
as positional args and the old syntax is not supported anymore.

* Fix long lines
lib/sqlalchemy/ext/compiler.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/sql/_elements_constructors.py