Project

General

Profile

« Previous | Next » 

Revision 3434

sql_io.py: put_table(): Determining if can use optimization for only literal values: Fixed bug where needed initial value for reduce()

View differences:

lib/sql_io.py
264 264
    
265 265
    # Determine if can use optimization for only literal values
266 266
    is_literals = not reduce(operator.or_, map(sql_gen.is_table_col,
267
        mapping.values()))
267
        mapping.values()), False)
268 268
    is_literals_or_function = is_literals or is_function
269 269
    
270 270
    if in_tables0 == None: errors_table_ = None

Also available in: Unified diff