Skip to content

Commit

Permalink
sql: fix infinite recursion in Value::hash() for Null
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrinaker committed Jul 11, 2024
1 parent ca6cad1 commit 812b360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sql/types/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl std::hash::Hash for Value {
self.datatype().hash(state);
// Normalize to treat +/-0.0 and +/-NAN as equal when hashing.
match self.normalize_ref().as_ref() {
Self::Null => self.hash(state),
Self::Null => {}
Self::Boolean(v) => v.hash(state),
Self::Integer(v) => v.hash(state),
Self::Float(v) => v.to_be_bytes().hash(state),
Expand Down

0 comments on commit 812b360

Please sign in to comment.