summaryrefslogtreecommitdiff
path: root/test/dialect/postgresql/test_compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-01-18 17:19:24 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2022-01-18 17:19:24 -0500
commite28ec27b599558b3e26ced106a972e8b4aa9e668 (patch)
treec89c5447fd7ba8ace3c334918e0d43e34d44c851 /test/dialect/postgresql/test_compiler.py
parente6ded82eef63235d7cbfe3ab3382a48f32913640 (diff)
downloadsqlalchemy-e28ec27b599558b3e26ced106a972e8b4aa9e668.tar.gz
reject methods as lambda SQL callables
Added an informative error message when a method object is passed to a SQL construct. Previously, when such a callable were passed, as is a common typographical error when dealing with method-chained SQL constructs, they were interpreted as "lambda SQL" targets to be invoked at compilation time, which would lead to silent failures. As this feature was not intended to be used with methods, method objects are now rejected. Fixes: #7032 Change-Id: If714715bd8c11557ab769ee3b1a24264b0b06acc
Diffstat (limited to 'test/dialect/postgresql/test_compiler.py')
0 files changed, 0 insertions, 0 deletions