Skip to content

Commit

Permalink
Fix hashing of tabled fields
Browse files Browse the repository at this point in the history
  • Loading branch information
noambloom committed Apr 23, 2021
1 parent 992f823 commit f698dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypika/terms.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def __str__(self) -> str:
return self.get_sql(quote_char='"', secondary_quote_char="'")

def __hash__(self) -> int:
return hash(self.get_sql(with_alias=True))
return hash(self.get_sql(with_alias=True, with_namespace=True))

def get_sql(self, **kwargs: Any) -> str:
raise NotImplementedError()
Expand Down

0 comments on commit f698dac

Please sign in to comment.