Project

General

Profile

« Previous | Next » 

Revision 3104

sql_gen.py: index_cols: Store just the name of the index column, and add the table in index_col(), in case the table is ever copied and renamed

View differences:

sql_gen.py
252 252

  
253 253
def index_col(col):
254 254
    if not is_table_col(col): return None
255
    return col.table.index_cols.get(col.name, None)
255
    
256
    table = col.table
257
    try: name = table.index_cols[col.name]
258
    except KeyError: return None
259
    else: return Col(name, table, col.srcs)
256 260

  
257 261
def is_temp_col(col): return is_table_col(col) and col.table.is_temp
258 262

  

Also available in: Unified diff