mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
track the kind of null arguments in order to provide the appropriate type when converting them
This commit is contained in:
committed by
Austin Bonander
parent
1e1697f655
commit
93f3d79f83
@@ -201,7 +201,7 @@ fn map_arguments(args: AnyArguments<'_>) -> SqliteArguments<'_> {
|
||||
.0
|
||||
.into_iter()
|
||||
.map(|val| match val {
|
||||
AnyValueKind::Null => SqliteArgumentValue::Null,
|
||||
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),
|
||||
|
||||
Reference in New Issue
Block a user