Skip to content

Commit

Permalink
add bind key to hash
Browse files Browse the repository at this point in the history
  • Loading branch information
tataraba committed Jan 21, 2025
1 parent 0e03f0c commit b739347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced_alchemy/config/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def __post_init__(self) -> None:
event.listen(Session, "before_flush", touch_updated_timestamp)

def __hash__(self) -> int:
return hash((uuid3(NAMESPACE_DNS, str(self)), self.__class__.__name__, self.metadata))
return hash((uuid3(NAMESPACE_DNS, str(self)), self.__class__.__name__, self.metadata, self.bind_key))

def __eq__(self, other: object) -> bool:
if not isinstance(other, type(self)):
Expand Down

0 comments on commit b739347

Please sign in to comment.