You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merged PR 5315: Added Tests, Major Fixes, Logging and Support Datatypes
#### AI description (iteration 1)
#### PR Classification
Bug fix and new feature implementation.
#### PR Summary
This pull request includes major fixes, logging enhancements, and support for new data types, along with added tests.
- `mssql_python/exceptions.py`: Refactored exception handling, added logging, and improved error message truncation.
- `mssql_python/cursor.py`: Enhanced logging for query execution and parameter handling, fixed data type handling for `decimal.Decimal` and `datetime`.
- Added new test files `tests/test_005_exceptions.py` and `tests/test_types.py` to cover exception handling and data type support.
- `mssql_python/pybind/ddbc_bindings.cpp`: Improved handling of datetime and error messages, added detailed logging.
- `mssql_python/helpers.py`: Updated error checking to raise custom exceptions with detailed logging.
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Related work items: #33809, #33810
# Always keep datetime.datetime check before datetime.date check since datetime.datetime is a subclass of datetime (isinstance(datetime.datetime, datetime.date) returns True)
0 commit comments