]> 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 15:28:40 +0000 (10:28 -0500)
commiteea0f44bbdb759368996dcdb241e837c7c809fb9
tree12ecc66f8183896b833a08c90ebf39799610d816
parent9f4ac8d155f58b59cf314cfbc73195ed51a0c146
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
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/dialect/postgresql/test_types.py
test/sql/test_compiler.py
test/sql/test_types.py
test/sql/test_values.py