Skip to content

Commit

Permalink
Fix impl SqlOrd postgres > postgres_backend feature flag.
Browse files Browse the repository at this point in the history
The PostgreSQL types are included when using the postgres_backend
feature flag, the same feature flag should be used for the SqlOrd
implementation of these types.
brocaar committed Nov 17, 2023
1 parent 99857a2 commit 7c2b50c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diesel/src/sql_types/ord.rs
Original file line number Diff line number Diff line change
@@ -15,9 +15,9 @@ impl SqlOrd for sql_types::Time {}
impl SqlOrd for sql_types::Timestamp {}
impl<T> SqlOrd for sql_types::Nullable<T> where T: SqlOrd + SqlType<IsNull = is_nullable::NotNull> {}

#[cfg(feature = "postgres")]
#[cfg(feature = "postgres_backend")]
impl SqlOrd for sql_types::Timestamptz {}
#[cfg(feature = "postgres")]
#[cfg(feature = "postgres_backend")]
impl<T: SqlOrd> SqlOrd for sql_types::Array<T> {}

#[cfg(feature = "mysql_backend")]

0 comments on commit 7c2b50c

Please sign in to comment.