Skip to content

Commit

Permalink
derived Hash trait for PgInterval (#2793)
Browse files Browse the repository at this point in the history
  • Loading branch information
yasamoka authored Oct 4, 2023
1 parent e80291b commit c2eda1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-postgres/src/types/interval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{PgArgumentBuffer, PgHasArrayType, PgTypeInfo, PgValueFormat, PgValue

// `PgInterval` is available for direct access to the INTERVAL type

#[derive(Debug, Eq, PartialEq, Clone)]
#[derive(Debug, Eq, PartialEq, Clone, Hash)]
pub struct PgInterval {
pub months: i32,
pub days: i32,
Expand Down

0 comments on commit c2eda1c

Please sign in to comment.