You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Percents de-escaping isn't handled when no parameters are used in the dbapi. #608
@jimfulton So the expected behavior is to always de-escape in absence of parameters, no matter what?
It might be breaking for some of the existing parameter-less queries that happen to contain %%, but it will at least be clear that de-escaping is consistently always applied.
Activity
jimfulton commentedon Apr 16, 2021
FTR, I have a local fix. It's pretty simple. In
cursor.py:plamut commentedon Apr 16, 2021
@jimfulton So the expected behavior is to always de-escape in absence of parameters, no matter what?
It might be breaking for some of the existing parameter-less queries that happen to contain
%%, but it will at least be clear that de-escaping is consistently always applied.jimfulton commentedon Apr 16, 2021
I think de-escaping has to be done consistently.
I tripped over this while testing the SQLAlchemy integration, which assumes consistent de-escaping.
plamut commentedon Apr 16, 2021
Fair enough. We do need to assure a good changelog message, though (note to self when merging the PR).
fix: consistent percents handling in DB API query (#619)