Commit 29b0cf4
authored
FEAT: Linux Test Pipeline (#115)
### ADO Work Item Reference
<!-- Insert your ADO Work Item ID below (e.g. AB#37452) -->
>
[AB#37842](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/37842)
-------------------------------------------------------------------
### Summary
<!-- Insert your Copilot Generated Summary below -->
This pull request enhances platform-specific driver handling for
`mssql-python` by introducing architecture-specific logic and a new
utility function to determine the correct ODBC driver path. The changes
improve cross-platform compatibility and error handling.
### Architecture-specific handling:
*
[`mssql_python/ddbc_bindings.py`](diffhunk://#diff-65fc4dc854e915ab51bf5ef8703891df3f52f15fb8ab3e152d3c81ac19864525R15-R21):
Added logic to handle architecture-specific cases for Linux platforms,
including support for `x86_64` and `arm64`. Raises an `ImportError` for
unsupported architectures.
### ODBC driver path resolution:
*
[`mssql_python/helpers.py`](diffhunk://#diff-7e002427036075c912554bb92d9e19681ea477e7c2a0eec56d284934d9125343R112-R195):
Added the `get_driver_path` function to dynamically resolve the ODBC
driver path based on platform, architecture, and Linux distribution.
Includes error handling for unsupported platforms and missing driver
files.
<!--
### PR Title Guide
> For feature requests
FEAT: (short-description)
> For non-feature requests like test case updates, config updates ,
dependency updates etc
CHORE: (short-description)
> For Fix requests
FIX: (short-description)
> For doc update requests
DOC: (short-description)
> For Formatting, indentation, or styling update
STYLE: (short-description)
> For Refactor, without any feature changes
REFACTOR: (short-description)
> For release related changes, without any feature changes
RELEASE: #<RELEASE_VERSION> (short-description)
-->1 parent 5f3f1b3 commit 29b0cf4
File tree
2 files changed
+411
-1
lines changed- eng/pipelines
- mssql_python
2 files changed
+411
-1
lines changed
0 commit comments