Project

General

Profile

« Previous | Next » 

Revision 2472

sql.py: DbConn.run_query(): Query debug message: Wrap the query in strings.as_code() so it will have Redmine syntax-highlighting

View differences:

lib/sql.py
300 300
                if used_cache: cache_status = 'cache hit'
301 301
                elif cacheable: cache_status = 'cache miss'
302 302
                else: cache_status = 'non-cacheable'
303
                debug_msg_ref[0] = 'DB query: '+cache_status+':\n'+str(
304
                    get_cur_query(cur, query, params)).rstrip()
303
                query_code = strings.as_code(str(get_cur_query(cur, query,
304
                    params)), 'SQL')
305
                debug_msg_ref[0] = 'DB query: '+cache_status+':\n'+query_code
305 306
        
306 307
        return cur
307 308
    

Also available in: Unified diff