Project

General

Profile

« Previous | Next » 

Revision 2545

sql.py: put_table(): Wrap repr() calls for debug messages in strings.as_tt() to add Redmine formatting

View differences:

sql.py
968 968
        log_debug('Returning NULL for all rows')
969 969
        limit_ref[0] = 0 # just create an empty pkeys table
970 970
    def ignore(in_col, value):
971
        in_col_str = repr(in_col)
971
        in_col_str = strings.as_tt(repr(in_col))
972 972
        db.log_debug('Adding index on '+in_col_str+' to enable fast filtering',
973 973
            level=2.5)
974 974
        add_index(db, in_col)
975
        log_debug('Ignoring rows with '+in_col_str+' = '+repr(value))
975
        log_debug('Ignoring rows with '+in_col_str+' = '
976
            +strings.as_tt(repr(value)))
976 977
    def remove_rows(in_col, value):
977 978
        ignore(in_col, value)
978 979
        cond = (in_col, sql_gen.CompareCond(value, '!='))

Also available in: Unified diff