fix(mapping): fix arithmetic overflow/exception on history update for DB2

related to CAM-1346