Project

General

Profile

« Previous | Next » 

Revision 3512

sql_gen.py: Added is_col() and use it in is_table_col()

View differences:

sql_gen.py
283 283
    
284 284
    def to_Col(self): return self
285 285

  
286
def is_table_col(col): return isinstance(col, Col) and col.table != None
286
def is_col(col): return isinstance(col, Col)
287 287

  
288
def is_table_col(col): return is_col(col) and col.table != None
289

  
288 290
def index_col(col):
289 291
    if not is_table_col(col): return None
290 292
    

Also available in: Unified diff