Fix type-checking option bug
This commit is contained in:
parent
da8e2d6771
commit
c4f5ac7b70
1 changed files with 1 additions and 1 deletions
|
|
@ -373,7 +373,7 @@ fn type_from_literal_with_type_hint(lit: &Literal, hint: &DbType) -> Result<DbTy
|
|||
Literal::String(_) => DbType::String,
|
||||
Literal::Int(_) => DbType::Int,
|
||||
Literal::Uuid(_) => DbType::Uuid,
|
||||
Literal::Some(l) => type_from_literal_with_type_hint(l, hint)?,
|
||||
Literal::Some(l) => DbType::Option(Box::new(type_from_literal_with_type_hint(l, hint)?)),
|
||||
Literal::None => {
|
||||
if matches!(hint, DbType::Option(_)) {
|
||||
hint.clone()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue