Project

General

Profile

« Previous | Next » 

Revision 2849

sql_gen.py: underlying_col(): Support non-Col inputs

View differences:

lib/sql_gen.py
260 260

  
261 261
def underlying_col(col):
262 262
    col = remove_col_rename(col)
263
    if not isinstance(col, Col): raise NoUnderlyingTableException
264
    
263 265
    table = remove_table_rename(col.table)
264 266
    if not is_underlying_table(table): raise NoUnderlyingTableException
267
    
265 268
    return Col(col.name, table, col.srcs)
266 269

  
267 270
def wrap(wrap_func, value):

Also available in: Unified diff