From 1554db50001356ee3ff036b4a98ad4da742cf4c2 Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Thu, 14 Dec 2023 20:21:11 +0000 Subject: [PATCH] Fixup --- tests/active_enum_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/active_enum_tests.rs b/tests/active_enum_tests.rs index e06e0ab2..1a38f3b7 100644 --- a/tests/active_enum_tests.rs +++ b/tests/active_enum_tests.rs @@ -113,6 +113,7 @@ pub async fn insert_active_enum(db: &DatabaseConnection) -> Result<(), DbErr> { // Equivalent to the above. let select_with_tea_in = Entity::find().filter(Column::Tea.is_in([Tea::EverydayTea, Tea::BreakfastTea])); + #[cfg(feature = "sqlx-postgres")] assert_eq!( select_with_tea_in .build(sea_orm::DatabaseBackend::Postgres) @@ -145,6 +146,7 @@ pub async fn insert_active_enum(db: &DatabaseConnection) -> Result<(), DbErr> { let select_with_tea_not_in = Entity::find() .filter(Column::Tea.is_not_null()) .filter(Column::Tea.is_not_in([Tea::BreakfastTea])); + #[cfg(feature = "sqlx-postgres")] assert_eq!( select_with_tea_not_in .build(sea_orm::DatabaseBackend::Postgres)