Project

General

Profile

« Previous | Next » 

Revision 2333

sql_gen.py: as_Col(): Don't allow None cols

View differences:

sql_gen.py
57 57
    def to_Col(self): return self
58 58

  
59 59
def as_Col(col, table=None):
60
    if col == None or isinstance(col, Code): return col
60
    assert col != None
61
    
62
    if isinstance(col, Code): return col
61 63
    else: return Col(col, table)
62 64

  
63 65
class NamedCol(Col):

Also available in: Unified diff