Skip to content

Commit 06a8680

Browse files
committed
fix(odbc): add BigInt compatibility for bool type
1 parent aa4c2b6 commit 06a8680

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sqlx-core/src/odbc/types/bool.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ impl Type<Odbc> for bool {
1212
fn compatible(ty: &OdbcTypeInfo) -> bool {
1313
matches!(
1414
ty.data_type(),
15-
DataType::Bit | DataType::TinyInt | DataType::SmallInt | DataType::Integer
15+
DataType::Bit
16+
| DataType::TinyInt
17+
| DataType::SmallInt
18+
| DataType::Integer
19+
| DataType::BigInt
1620
) || ty.data_type().accepts_character_data() // Allow parsing from strings
1721
}
1822
}

0 commit comments

Comments
 (0)