Project

General

Profile

« Previous | Next » 

Revision 4637

join: passthru mode: Fixed bug where empty join mappings needed to have the output field of the right-hand row manually set to the output field of the left-hand row for maps.merge_mappings() to work properly

View differences:

join
80 80
                    suffix = sep+new_suffix+suffix # prepend new suffix
81 81
            
82 82
            is_empty = len(out_rows) == 1 and out_rows[0][1] == ''
83
            if is_empty: set_error('No non-empty join mapping for '+out_orig)
83
            if is_empty:
84
                if passthru: out_rows[0][1] = row[1] # for maps.merge_mappings()
85
                set_error('No non-empty join mapping for '+out_orig)
84 86
            
85 87
            # Write new mapping
86 88
            if only_one and len(out_rows) > 1: # multiple outputs are ambiguous

Also available in: Unified diff