'Updating a row with a new Model instance shouldn\'t set columns to defaults
@since 3.9
@jira_ticket PYTHON-657
@expected_result column value should not change
@test_category object_mapper'

def test_value_override_with_default(self):

    first_udt = UDT(age=1, mf={2: 2}, dummy_udt=0)
    initial = ModelWithDefault(id=1, mf={0: 0}, dummy=0, udt=first_udt, udt_default=first_udt)
    initial.save()
    self.assertEqual(ModelWithDefault.get()._as_dict(), {'id': 1, 'dummy': 0, 'mf': {0: 0}, 'udt': first_udt, 'udt_default': first_udt})
    second_udt = UDT(age=1, mf={3: 3}, dummy_udt=12)
    second = ModelWithDefault(id=1)
    second.update(mf={0: 1}, udt=second_udt)
    self.assertEqual(ModelWithDefault.get()._as_dict(), {'id': 1, 'dummy': 0, 'mf': {0: 1}, 'udt': second_udt, 'udt_default': first_udt})
