Project

General

Profile

« Previous | Next » 

Revision 2744

sql_gen.py: Added set_cols_table()

View differences:

lib/sql_gen.py
198 198
    if isinstance(col, Code): return col
199 199
    else: return Col(col, table)
200 200

  
201
def set_cols_table(table, cols):
202
    table = as_Table(table)
203
    
204
    for i, col in enumerate(cols):
205
        col = cols[i] = as_Col(col)
206
        col.table = table
207

  
201 208
def to_name_only_col(col, check_table=None):
202 209
    col = as_Col(col)
203 210
    if not isinstance(col, Col): return col

Also available in: Unified diff