stacklevel for SAWarning about Unicode types
Issue #2707
new
When passing strings to a Unicode type, sqlalchemy complains: lib/python2.7/site-packages/SQLAlchemy-0.8.0-py2.7-linux-x86_64.egg/sqlalchemy/engine/default.py:455: SAWarning: Unicode type received non-unicode bind param value.
Those warnings are hard to debug. Changing stacklevel to 17 reports the stack correctly, but I'm not sure if stacklevel is dynamic.
Comments (4)
-
repo owner -
reporter Since it's 17 stacks, it probably changes quickly and there might be multiple paths to get to that warning. No idea how to do that dynamically, Googling doesn't reveal much.
-
repo owner - changed milestone to blue sky
-
Adding this for Search Equity:
This seems to be a variation of this
wontfix
ticket from 2008:Some relevant threads from the groups on this
- Log in to comment
im not sure what the magic is for these stacklevels, we've had to change them a lot. Any suggestions ?