]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add informative exception context for literal render
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Nov 2022 13:54:56 +0000 (08:54 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Nov 2022 18:49:38 +0000 (13:49 -0500)
commit3ea8273c7926d19d4745bf5a859927838fa0783c
treefc8082f19320879be28877335c32f2d01b4254f7
parent3d892381996e7ba68ee3bf6d7de40c8414e3812a
add informative exception context for literal render

An informative re-raise is now thrown in the case where any "literal
bindparam" render operation fails, indicating the value itself and
the datatype in use, to assist in debugging when literal params
are being rendered in a statement.

Fixes: #8800
Change-Id: Id658f8b03359312353ddbb0c7563026239579f7b
(cherry picked from commit c7baf6e0aa624c9378c3bc3c4923d1e188d62dc9)
doc/build/changelog/unreleased_14/8800.rst [new file with mode: 0644]
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/sqltypes.py
lib/sqlalchemy/sql/util.py
test/sql/test_compiler.py
test/sql/test_types.py
test/sql/test_values.py