Closed TheRustifyer closed 2 years ago
Please, if possible, link the PR to this issue.
...
tiberius
-XmlData
Ok, I understand now where this is happening. If a resulting row has enough nulls, SQL Server returns it as a packed row (NBC). It gives us a bitmap that tells the null columns, and we have to react accordingly. There's already a test that triggers this behavior, I will add another one that triggers the bug.
Closing in favor of https://github.com/prisma/tiberius/pull/253
I am opening this PR because when I work with Rust and tiberius, and I have some
Option<f32>
andOption<f64>
,row.get()
produces anResult::unwrap()
on a None value.I am not proud of the purposed solution, as is just a temporal fix. I would like that the dev team could take it as provisional, review my code and purpose a solution over this initial patch.