Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ClauseElement.__str__() instead of str() to obtain statement
When an field value is a unicode string, the use of str() in python 2.x will cause the str() call to fail. Python 3.x does not have a unicode() function, however SQLAlchemy does have __str__() which will do encoding between py2 and py3. https://github.com/sqlalchemy/sqlalchemy/blob/master/lib/sqlalchemy/sql/elements.py#L489
- Loading branch information