Project

General

Profile

« Previous | Next » 

Revision 3532

sql_gen.py: underlying_table(): Support derived tables and row vars by obtaining the underlying table from the srcs

View differences:

lib/sql_gen.py
251 251

  
252 252
def underlying_table(table):
253 253
    table = remove_table_rename(table)
254
    if table != None and table.srcs:
255
        table, = table.srcs # for derived tables or row vars
254 256
    if not is_underlying_table(table): raise NoUnderlyingTableException
255 257
    return table
256 258

  

Also available in: Unified diff