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

related to CAM-1346