track the kind of null arguments in order to provide the appropriate type when converting them

This commit is contained in:
etorreborre
2024-06-17 17:02:29 +02:00
committed by Austin Bonander
parent 1e1697f655
commit 93f3d79f83
5 changed files with 30 additions and 14 deletions

View File

@@ -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),