Project

General

Profile

« Previous | Next » 

Revision 2283

sql_gen.py: Removed no longer needed cond2sql_gen()

View differences:

sql_gen.py
221 221
    if is_tuple or (assume_col and util.is_str(value)):
222 222
        return col2sql_gen(value, default_table, table_is_esc)
223 223
    else: return Literal(value)
224

  
225
def cond2sql_gen(value, default_table=None, table_is_esc=False,
226
    assume_col=False):
227
    '''Converts old-style (tuple-based) conditions to sql_gen-compatible values.
228
    @param table_is_esc If False, assumes any table name is not escaped or that
229
        re-escaping it will produce the same value.
230
    '''
231
    if isinstance(value, ValueCond): return value # already in sql_gen form
232
    
233
    return as_ValueCond(value2sql_gen(value, default_table, table_is_esc,
234
        assume_col))

Also available in: Unified diff