Skip to content

Commit f84a763

Browse files
committed
rusqlite: fixup
1 parent 5c63ac2 commit f84a763

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sea-query-rusqlite/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ impl ToSql for RusqliteValue {
119119
#[cfg(feature = "with-json")]
120120
Value::Json(j) => box_to_sql!(j),
121121
#[cfg(feature = "with-rust_decimal")]
122-
Value::Decimal(v) => opt_string_to_sql!(v.map(|v| v.to_string())),
122+
Value::Decimal(v) => opt_string_to_sql!(v.as_ref().map(|v| v.to_string())),
123123
#[cfg(feature = "with-bigdecimal")]
124-
Value::BigDecimal(v) => opt_string_to_sql!(v.map(|v| v.to_string())),
124+
Value::BigDecimal(v) => opt_string_to_sql!(v.as_ref().map(|v| v.to_string())),
125125
#[cfg(feature = "with-ipnetwork")]
126-
Value::IpNetwork(v) => opt_string_to_sql!(v.map(|v| v.to_string())),
126+
Value::IpNetwork(v) => opt_string_to_sql!(v.as_ref().map(|v| v.to_string())),
127127
#[cfg(feature = "with-mac_address")]
128-
Value::MacAddress(v) => opt_string_to_sql!(v.map(|v| v.to_string())),
128+
Value::MacAddress(v) => opt_string_to_sql!(v.as_ref().map(|v| v.to_string())),
129129
#[cfg(feature = "postgres-array")]
130130
Value::Array(_, _) => {
131131
panic!("Rusqlite doesn't support Array arguments");

0 commit comments

Comments
 (0)