Project

General

Profile

« Previous | Next » 

Revision 5192

sql_io.py: put_table(): Fixed bug where row_ct_ref was incorrectly being incremented when the iteration is a function call. This bug only occurred in row-based mode, because the DB cursor for a function call is not stored in column-based mode.

View differences:

sql_io.py
365 365
    
366 366
    is_function = sql.function_exists(db, out_table)
367 367
    
368
    if is_function: row_ct_ref = None # only track inserted rows
369
    
368 370
    # Warn if inserting empty table rows
369 371
    if not mapping and not is_function: # functions with no args OK
370 372
        warnings.warn(UserWarning('Inserting empty table row(s)'))

Also available in: Unified diff