Project

General

Profile

« Previous | Next » 

Revision 3281

sql.py: DbConn.run_query(): Put the data source comment on a separate line in the log file instead of using a carriage return, which sometimes had the desired effect of overwriting the src comment with the first line of the query but sometimes the line lengths weren't right and there wasn't enough overlap

View differences:

lib/sql.py
380 380
                ## Log or return query
381 381
                
382 382
                query = str(get_cur_query(cur, query))
383
                # So that the src comment is hidden when cating the file, and
384
                # put on a separate line when viewed in a text editor.
385
                query = query.replace('\t', '\r', 1)
383
                # Put the src comment on a separate line in the log file
384
                query = query.replace('\t', '\n', 1)
386 385
                
387 386
                msg = 'DB query: '
388 387
                

Also available in: Unified diff