Project

General

Profile

« Previous | Next » 

Revision 4207

sql_io.py: put_table(): When ignoring all rows for an iteration, return literal NULL value instead of column of NULLs as an optimization for callers using that iteration's pkeys

View differences:

lib/sql_io.py
478 478
        
479 479
        # Handle unrecoverable errors in a special case
480 480
        if limit_ref[0] == 0:
481
            if is_literals:
481
            if is_literals or default == None:
482 482
                default = sql_gen.remove_col_rename(default)
483 483
                log_debug('Returning default: '+strings.as_tt(repr(default)))
484 484
                return default

Also available in: Unified diff