]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Document that type_coerce does not currently imply parenthesization
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Jun 2020 17:28:21 +0000 (13:28 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Jun 2020 17:31:04 +0000 (13:31 -0400)
commit22609d784c96245dba4275f6ebc494b2614aa9a5
treebcfc14ce648eaeb584908066e754631fc7dc9316
parent13022cbcae3303c73a20b2a1a53b932092e8c400
Document that type_coerce does not currently imply parenthesization

We've had a few issues where the current solution
is to use the self_group() method, so document that as
the current approach for the parenthesization use case.
Whether or not type_coerce() is changed later, this is
how it works at the moment.

Fixes: #5375
Change-Id: I97414762a87ec8f1fd1adc1b6be5a52e576814ca
References: #5344
(cherry picked from commit a4de30c50eb660a08c8d025c158c54a0bd84f051)
lib/sqlalchemy/sql/elements.py