Project

General

Profile

« Previous | Next » 

Revision 2541

sql.py: add_index(): Fixed bug where expressions could not be converted to a string until their table name had been removed

View differences:

lib/sql.py
802 802
    # Extract col
803 803
    if isinstance(expr, sql_gen.FunctionCall):
804 804
        col = expr.args[0]
805
        expr = sql_gen.CustomCode('('+expr.to_str(db)+')')
805
        expr = sql_gen.Expr(expr)
806 806
    else: col = expr
807 807
    assert sql_gen.is_table_col(col)
808 808
    

Also available in: Unified diff