Revision 2771
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
27 | 27 |
|
28 | 28 |
def _add_cursor_info(e, *args, **kw_args): |
29 | 29 |
'''For params, see get_cur_query()''' |
30 |
exc.add_msg(e, 'query: '+str(get_cur_query(*args, **kw_args))) |
|
30 |
exc.add_msg(e, 'query: '+strings.ustr(get_cur_query(*args, **kw_args)))
|
|
31 | 31 |
|
32 | 32 |
class DbException(exc.ExceptionWithCause): |
33 | 33 |
def __init__(self, msg, cause=None, cur=None): |
Also available in: Unified diff
sql.py: get_cur_query(): Fixed bug where strings.ustr() needed to be used instead of str() when ensuring that get_cur_query() returns a string