diff --git a/core/vdbe/execute.rs b/core/vdbe/execute.rs index 211164b25..4f5ab5ccc 100644 --- a/core/vdbe/execute.rs +++ b/core/vdbe/execute.rs @@ -1762,10 +1762,10 @@ pub fn op_type_check( return Ok(()); } let col_affinity = col.affinity(); - let ty_str = col.ty_str.as_str(); + let ty_str = col.ty_str.to_ascii_uppercase(); let applied = apply_affinity_char(reg, col_affinity); let value_type = reg.get_value().value_type(); - match (ty_str, value_type) { + match (ty_str.as_str(), value_type) { ("INTEGER" | "INT", ValueType::Integer) => {} ("REAL", ValueType::Float) => {} ("BLOB", ValueType::Blob) => {}