]> 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:28:21 +0000 (13:28 -0400)
commita4de30c50eb660a08c8d025c158c54a0bd84f051
treeb3300b9088a34570dc5f7d30da3c00fd4f9b47d5
parent3b2c6692bd5df6fe4a37192dfdaed408e3be5e54
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
lib/sqlalchemy/sql/elements.py