We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3753821 commit 014b658Copy full SHA for 014b658
gcloud/datastore/helpers.py
@@ -223,6 +223,15 @@ def _set_protobuf_value(value_pb, val):
223
:param val: The value to be assigned.
224
"""
225
if val is None:
226
+ value_pb.ClearField('boolean_value')
227
+ value_pb.ClearField('integer_value')
228
+ value_pb.ClearField('double_value')
229
+ value_pb.ClearField('timestamp_microseconds_value')
230
+ value_pb.ClearField('key_value')
231
+ value_pb.ClearField('blob_key_value')
232
+ value_pb.ClearField('string_value')
233
+ value_pb.ClearField('blob_value')
234
+ value_pb.ClearField('entity_value')
235
return
236
237
attr, val = _get_protobuf_attribute_and_value(val)
0 commit comments