Repository navigation
Commit cb0bd6c
FIX: Use ODBC 3.x parameter types instead of ODBC 2.x (#758)
### Work Item / Issue Reference
> Closes #757
-------------------------------------------------------------------
### Summary
Use ODBC 3.x concise temporal SQL types for Python-side parameter
inference. Canonicalize legacy temporal hints passed to
`setinputsizes()` before binding while preserving exported constant
values. Add focused coverage for inferred and explicit temporal types.
### Validation
- `python -m black --check --line-length=100 mssql_python/ tests/`
- Focused mapping tests: 3 passed
- `tests/test_000_dependencies.py`: 35 passed, 3 skipped
- Live SQL tests not run locally because `DB_CONNECTION_STRING` is
unavailable.
---------
Co-authored-by: Theekshna Kotian <tkotian@microsoft.com>1 parent 331984b commit cb0bd6c
3 files changed
Lines changed: 65 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
| |||
947 | 952 | | |
948 | 953 | | |
949 | 954 | | |
950 | | - | |
| 955 | + | |
951 | 956 | | |
952 | 957 | | |
953 | 958 | | |
| |||
956 | 961 | | |
957 | 962 | | |
958 | 963 | | |
959 | | - | |
| 964 | + | |
960 | 965 | | |
961 | 966 | | |
962 | 967 | | |
| |||
1180 | 1185 | | |
1181 | 1186 | | |
1182 | 1187 | | |
| 1188 | + | |
| 1189 | + | |
1183 | 1190 | | |
1184 | 1191 | | |
1185 | 1192 | | |
| |||
1210 | 1217 | | |
1211 | 1218 | | |
1212 | 1219 | | |
| 1220 | + | |
| 1221 | + | |
1213 | 1222 | | |
1214 | 1223 | | |
1215 | 1224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2520 | 2520 | | |
2521 | 2521 | | |
2522 | 2522 | | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
| 2571 | + | |
| 2572 | + | |
| 2573 | + | |
| 2574 | + | |
2523 | 2575 | | |
2524 | 2576 | | |
2525 | 2577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
667 | | - | |
| 667 | + | |
668 | 668 | | |
669 | 669 | | |
670 | | - | |
| 670 | + | |
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
| |||
0 commit comments