Project

General

Profile

« Previous | Next » 

Revision 2514

sql_gen.py: sql_gen classes inherit from new base class BasicObject, whose str() calls clean_name() on the object's repr(). Changed the main debug-repr producing method to be repr() instead of str().

View differences:

sql.py
882 882
    
883 883
    def log_debug(msg): db.log_debug(msg, level=1.5)
884 884
    def col_ustr(str_):
885
        return strings.ustr(sql_gen.remove_col_rename(sql_gen.as_Col(str_)))
885
        return strings.repr_no_u(sql_gen.remove_col_rename(
886
            sql_gen.as_Col(str_)))
886 887
    
887 888
    log_debug('********** New iteration **********')
888 889
    log_debug('Inserting these input columns into '+strings.as_tt(
......
942 943
        log_debug('Returning NULL for all rows')
943 944
        limit_ref[0] = 0 # just create an empty pkeys table
944 945
    def ignore(in_col, value):
945
        in_col_str = str(in_col)
946
        in_col_str = repr(in_col)
946 947
        log_debug('Adding index on '+in_col_str+' to enable fast filtering')
947 948
        index_col(db, in_col)
948 949
        log_debug('Ignoring rows with '+in_col_str+' = '+repr(value))

Also available in: Unified diff