Merge pull request #2564 from bblommers/bugfix/2562

#2562 - DynamoDB - allow updates to be of a different type
This commit is contained in:
Mike Grima 2019-11-15 11:08:35 -08:00 committed by GitHub
commit 60a5a06d23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 64 additions and 0 deletions

View file

@ -77,6 +77,7 @@ class DynamoType(object):
attr, list_index = attribute_is_list(attr)
if not key:
# {'S': value} ==> {'S': new_value}
self.type = new_value.type
self.value = new_value.value
else:
if attr not in self.value: # nonexistingattribute