jazzband / django-silk

Silky smooth profiling for Django
MIT License
4.35k stars 332 forks source link

raise codec error in execute_sql #157

Open mapher87 opened 7 years ago

mapher87 commented 7 years ago

The statement would raise codec error when "params" contained non ASCII strings at sql.py: sql_query = q % params It's better to use django's force_text processing to handle it.

avelis commented 7 years ago

@mapher87 Thanks for highlighting the issue. If you have the time, I more than welcome a PR that addresses this.