Project

General

Profile

« Previous | Next » 

Revision 2771

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

View differences:

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