Commit b227c64
Theekshna Kotian
Merged PR 5330: Fix fetching of var data + Error for unsupported types + fix 2 crashes
Fix fetching of var data + Error for unsupported types + fix some crashes
----
#### AI description (iteration 1)
#### PR Classification
Bug fix
#### PR Summary
This pull request addresses issues with fetching variable-length data, adds error handling for unsupported data types, and fixes several crashes.
- `mssql_python/pybind/ddbc_bindings.cpp`: Improved handling of variable-length data, added detailed logging and exceptions for unsupported data types, and fixed crashes related to data fetching.
- Added `HandleZeroColumnSizeAtFetch` function to manage cases where column size is zero.
- Replaced `SQL_NUMERIC_SIZE` with `MAX_DIGITS_IN_NUMERIC` for better numeric data handling.
- Enhanced logging for errors during data retrieval in `SQLGetData_wrap`.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Related work items: #339251 parent b5a889f commit b227c64
2 files changed
+401
-225
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
| |||
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
575 | | - | |
| 576 | + | |
576 | 577 | | |
577 | 578 | | |
578 | 579 | | |
| |||
657 | 658 | | |
658 | 659 | | |
659 | 660 | | |
| 661 | + | |
660 | 662 | | |
661 | 663 | | |
662 | 664 | | |
| |||
676 | 678 | | |
677 | 679 | | |
678 | 680 | | |
| 681 | + | |
679 | 682 | | |
680 | 683 | | |
681 | 684 | | |
| |||
694 | 697 | | |
695 | 698 | | |
696 | 699 | | |
| 700 | + | |
697 | 701 | | |
698 | 702 | | |
699 | 703 | | |
0 commit comments