Skip to content

Commit 293c70f

Browse files
committed
Fix
1 parent 4ad2d1c commit 293c70f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sea-query-diesel/src/backend/mysql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl TransformValue for Mysql {
6464
))]
6565
Value::Decimal(_) => bail!("Enable feature with-rust_decimal-mysql"),
6666
#[cfg(feature = "with-bigdecimal")]
67-
Value::BigDecimal(v) => build!(Numeric, v.map(|v| *v)),
67+
Value::BigDecimal(v) => build!(Numeric, v),
6868
#[cfg(feature = "with-json")]
6969
Value::Json(v) => build!(Json, v),
7070
#[cfg(feature = "with-ipnetwork")]

sea-query-diesel/src/backend/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl TransformValue for Pg {
7474
))]
7575
Value::Decimal(_) => bail!("Enable feature with-rust_decimal-postgres"),
7676
#[cfg(feature = "with-bigdecimal")]
77-
Value::BigDecimal(v) => build!(Numeric, v.map(|v| *v)),
77+
Value::BigDecimal(v) => build!(Numeric, v),
7878
#[cfg(feature = "with-json")]
7979
Value::Json(v) => build!(Json, v),
8080
#[cfg(feature = "with-ipnetwork")]

0 commit comments

Comments
 (0)