Skip to content

Commit 6904da0

Browse files
committed
fix(odbc): binary data was extracted as text
This commit modifies the null handling logic in the OdbcBridge by changing the method used to retrieve binary data from the cursor. The update ensures that the correct binary data is processed, enhancing the reliability of data fetching in ODBC connections.
1 parent 82d56f2 commit 6904da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlx-core/src/odbc/connection/odbc_bridge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ where
456456
nulls: &mut Vec<bool>,
457457
) {
458458
let mut buf = Vec::new();
459-
nulls.push(cursor_row.get_text(col_index, &mut buf).is_err());
459+
nulls.push(cursor_row.get_binary(col_index, &mut buf).is_err());
460460
vec.push(buf);
461461
}
462462

0 commit comments

Comments
 (0)