Skip to content

Commit

Permalink
Merge pull request #3464 from MOZGIII/now-fix
Browse files Browse the repository at this point in the history
Use postgres_backend instead of bare postgres feature for now expression
  • Loading branch information
weiznich authored Dec 29, 2022
2 parents 0fe6167 + 9301a6a commit 49b39fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diesel/src/expression/functions/date_and_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl AsExpression<Nullable<Timestamp>> for now {
}
}

#[cfg(feature = "postgres")]
#[cfg(feature = "postgres_backend")]
impl AsExpression<Timestamptz> for now {
type Expression = Coerce<now, Timestamptz>;

Expand All @@ -67,7 +67,7 @@ impl AsExpression<Timestamptz> for now {
}
}

#[cfg(feature = "postgres")]
#[cfg(feature = "postgres_backend")]
impl AsExpression<Nullable<Timestamptz>> for now {
type Expression = Coerce<now, Nullable<Timestamptz>>;

Expand Down

0 comments on commit 49b39fc

Please sign in to comment.