Commit 1d4a417
committed
Merged PR 5320: Enhance Data Handling and Precision in DDBC Bindings
This PR introduces several improvements and fixes to the DDBC bindings, focusing on data handling, precision, and proper rounding for various SQL data types. The key changes include:
1. **Handling SQL_FLOAT and SQL_REAL with Proper Rounding:**
2. **Handling SQL_FLOAT and SQL_DOUBLE:**
- Ensured that `SQL_DOUBLE` values are fetched and appended to the row with the correct precision.
**Testing:**
- Updated the test script `testing_ddbc_bindings.py` to include test cases for the newly handled data types and conversions.
- Verified that the data is fetched and converted correctly for various SQL data types, including numeric, time, and binary types.
**Impact:**
- These changes enhance the robustness and accuracy of data handling in the DDBC bindings, ensuring that various SQL data types are correctly fetched, converted, and appended to the result rows.
- The improvements also make the codebase more maintainable and easier to understand.
**Reviewer Notes:**
- Please review the changes to the handling of `SQL_FLOAT`, `SQL_REAL`, and `SQL_DOUBLE` with proper rounding.
Related work items: #338311 parent 3ef7fc4 commit 1d4a417
1 file changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
909 | | - | |
910 | 909 | | |
911 | | - | |
912 | | - | |
| 910 | + | |
| 911 | + | |
913 | 912 | | |
914 | | - | |
| 913 | + | |
915 | 914 | | |
916 | 915 | | |
917 | 916 | | |
| |||
933 | 932 | | |
934 | 933 | | |
935 | 934 | | |
936 | | - | |
| 935 | + | |
| 936 | + | |
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
940 | | - | |
| 940 | + | |
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
| |||
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
| 1157 | + | |
| 1158 | + | |
1160 | 1159 | | |
1161 | 1160 | | |
1162 | 1161 | | |
| |||
1167 | 1166 | | |
1168 | 1167 | | |
1169 | 1168 | | |
| 1169 | + | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
| |||
1305 | 1305 | | |
1306 | 1306 | | |
1307 | 1307 | | |
1308 | | - | |
1309 | | - | |
| 1308 | + | |
1310 | 1309 | | |
1311 | 1310 | | |
1312 | 1311 | | |
| |||
1320 | 1319 | | |
1321 | 1320 | | |
1322 | 1321 | | |
1323 | | - | |
| 1322 | + | |
| 1323 | + | |
1324 | 1324 | | |
1325 | 1325 | | |
1326 | 1326 | | |
| |||
0 commit comments