We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc8628 commit 6ef26c7Copy full SHA for 6ef26c7
sqlx-core/src/mssql/types/uint.rs
@@ -83,11 +83,17 @@ impl Decode<'_, Mssql> for u32 {
83
84
impl Type<Mssql> for u64 {
85
fn type_info() -> MssqlTypeInfo {
86
- MssqlTypeInfo(TypeInfo::new(DataType::Numeric, 0))
+ MssqlTypeInfo(TypeInfo::new(DataType::NumericN, 17))
87
}
88
89
fn compatible(ty: &MssqlTypeInfo) -> bool {
90
- matches!(ty.0.ty, DataType::Numeric | DataType::Decimal)
+ matches!(
91
+ ty.0.ty,
92
+ DataType::Numeric
93
+ | DataType::NumericN
94
+ | DataType::Decimal
95
+ | DataType::DecimalN
96
+ ) && (ty.0.size == 0 || ty.0.size == 17)
97
98
99
0 commit comments