Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Jan 24, 2024
1 parent d55ce81 commit ce7e420
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/relational_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,11 +509,10 @@ pub async fn having() {
.group_by(order::Column::Total);
select = if cfg!(feature = "sqlx-sqlite") {
select.having(
Expr::expr(Expr::col(order::Column::Total).cast_as(Alias::new("real")))
.gt(rust_dec(90.00)),
Expr::expr(Expr::col(order::Column::Total).cast_as(Alias::new("real"))).gt(dec!(90.00)),
)
} else {
select.having(order::Column::Total.gt(rust_dec(90.00)))
select.having(order::Column::Total.gt(dec!(90.00)))
};
let results = select
.into_model::<SelectResult>()
Expand Down

0 comments on commit ce7e420

Please sign in to comment.