mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 16:44:07 +00:00
fix(sqlite): encode bool as integer (#2620)
This commit is contained in:
@@ -205,6 +205,7 @@ fn map_arguments(args: AnyArguments<'_>) -> SqliteArguments<'_> {
|
||||
.into_iter()
|
||||
.map(|val| match val {
|
||||
AnyValueKind::Null => SqliteArgumentValue::Null,
|
||||
AnyValueKind::Bool(b) => SqliteArgumentValue::Int(b as i32),
|
||||
AnyValueKind::SmallInt(i) => SqliteArgumentValue::Int(i as i32),
|
||||
AnyValueKind::Integer(i) => SqliteArgumentValue::Int(i),
|
||||
AnyValueKind::BigInt(i) => SqliteArgumentValue::Int64(i),
|
||||
|
||||
Reference in New Issue
Block a user