]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Correct for coercion from list args to positional for case
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Mar 2021 14:34:31 +0000 (10:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Mar 2021 14:34:31 +0000 (10:34 -0400)
commited515f2ca16e1b40efe5ee0299417f8d6eb51b86
tree7e27deed98e467eea2fc0f99796869f358c1497c
parent37ef5f38523329f3e881c4f70d38d5589510af9f
Correct for coercion from list args to positional for case

Fixed regression in the :func:`_sql.case` construct, where the "dictionary"
form of argument specification failed to work correctly if it were passed
positionally, rather than as a "whens" keyword argument.

Fixes: #6097
Change-Id: I4138f54309a08c8e4e63cfafc211176e0b9a76c7
doc/build/changelog/unreleased_14/6097.rst [new file with mode: 0644]
lib/sqlalchemy/sql/coercions.py
lib/sqlalchemy/sql/elements.py
test/sql/test_case_statement.py