Closed chrislondon closed 2 years ago
My apologies. It looks like this is the behavior of the Django model UUIDField:
class UUIDField(Field):
# ...
def get_db_prep_value(self, value, connection, prepared=False):
if value is None:
return None
if not isinstance(value, uuid.UUID):
value = self.to_python(value)
if connection.features.has_native_uuid_field:
return value
return value.hex
We use UUIDs as our primary key and django-snowflake seems to be stripping out the hyphens making it unusable.
What I'm seeing:
What I expect to see:
I believe this is in django-snowflake and not in the snowflake connector because I can run this just fine: