Project

General

Profile

« Previous | Next » 

Revision 5817

sql_io.py: track_data_error(): Fixed bug where errors whose column had no srcs (indicated by () ) were incorrectly being ignored. This affected NOT NULL exceptions where the column was not provided by the dataset.

View differences:

lib/sql_io.py
59 59
    '''
60 60
    @param errors_table If None, does nothing.
61 61
    '''
62
    if errors_table == None or cols == (): return
62
    if errors_table == None: return
63 63
    
64 64
    col_names = [c.name for c in cols]
65 65
    if not col_names: col_names = [None] # need at least one entry

Also available in: Unified diff