Project

General

Profile

« Previous | Next » 

Revision 1387

join: Don't append suffix to empty output mappings, so that they stay empty ("NULL")

View differences:

bin/join
57 57
            # Write new mapping
58 58
            if out_row != None:
59 59
                row = maps.merge_mappings(row, out_row)
60
                row[1] += suffix # don't modify out_row!
60
                if row[1] != '': row[1] += suffix # don't modify out_row!
61 61
            else:
62 62
                msg = 'No join mapping for '+out_orig
63 63
                warnings.warn(UserWarning(msg))

Also available in: Unified diff