Project

General

Profile

« Previous | Next » 

Revision 3623

sql_io.py: put_table(): is_literals: When ignoring all rows, return default value instead of always None

View differences:

lib/sql_io.py
468 468
        if limit_ref[0] == 0:
469 469
            assert not has_joins
470 470
            
471
            if is_literals: return None
471
            if is_literals:
472
                log_debug('Returning default: '+strings.as_tt(repr(default)))
473
                return default
472 474
            elif is_function: pass # empty pkeys table already created
473 475
            else:
474 476
                log_debug('Creating an empty output pkeys table')

Also available in: Unified diff