Project

General

Profile

« Previous | Next » 

Revision 2282

sql.py: mk_select(): cond(): Parse conditions using sql_gen-only functions

View differences:

lib/sql.py
451 451
    def cond(entry):
452 452
        '''Parses conditions'''
453 453
        left, right = entry
454
        return sql_gen.cond2sql_gen(right).to_str(db, sql_gen.col2sql_gen(left))
454
        return sql_gen.as_ValueCond(right).to_str(db, sql_gen.as_Col(left))
455 455
    
456 456
    query = 'SELECT'
457 457
    

Also available in: Unified diff