From c4667296ca7d2c85cbec4bc08a05ca30bdc56e95 Mon Sep 17 00:00:00 2001 From: Sam Samai Date: Sun, 18 Jul 2021 20:58:52 +1000 Subject: [PATCH] Use greater than in `having` test --- tests/relational_tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/relational_tests.rs b/tests/relational_tests.rs index e0fb5ba4..442ecbac 100644 --- a/tests/relational_tests.rs +++ b/tests/relational_tests.rs @@ -355,7 +355,7 @@ pub async fn test_group_by() { } pub async fn test_having() { - // customers with orders with total equal to $100 + // customers with orders with total equal to $90 let ctx = TestContext::new("mysql://root:@localhost", "test_having").await; let bakery = bakery::ActiveModel { @@ -444,7 +444,7 @@ pub async fn test_having() { .column_as(order::Column::Total, "order_total") .group_by(customer::Column::Name) .group_by(order::Column::Total) - .having(order::Column::Total.eq(dec!(100.00))) + .having(order::Column::Total.gt(dec!(90.00))) .into_model::() .all(&ctx.db) .await