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
{{ message }}
Repository navigation
Commit cfd8b9e
Browse filesBrowse the repository at this point in the historyBrowse files
### Work Item / Issue Reference
<!--
IMPORTANT: Please follow the PR template guidelines below.
For mssql-python maintainers: Insert your ADO Work Item ID below
For external contributors: Insert Github Issue number below
Only one reference is required - either GitHub issue OR ADO Work Item.
-->
<!-- mssql-python maintainers: ADO Work Item -->
> ADO Work Item: N/A
<!-- External contributors: GitHub Issue -->
> GitHub Issue: #455
-------------------------------------------------------------------
### Summary
<!-- Insert your summary of changes below. Minimum 10 characters
required. -->
This pull request introduces several important enhancements and fixes to
the profiler benchmarks and the native driver, primarily focused on
adding comprehensive text conversion workloads and improving resource
management after batch fetch failures. The changes also include updates
to documentation and internal naming for clarity.
**Profiler benchmark enhancements:**
* Added new workloads to the profiler benchmark suite for text
conversion, covering ASCII, CP1252, UTF-8, and NVARCHAR scenarios,
including variants for short and full payloads, as well as narrow
control fetches for both VARCHAR and INT types. These workloads measure
performance and correctness of text decoding and buffer management.
* Updated the profiler benchmark documentation to describe the new text
conversion workloads, their setup, and their validation approach, and to
reflect the expanded registry of 40 tasks.
**Driver resource management and error handling:**
* Improved handling of failed batch fetch cleanup: renamed internal
structures from `FailedParameterBuffers` to `FailedBindingBuffers` for
clarity, ensured that failed batches retire the statement and retain
native buffers until explicit release or disconnect, and introduced a
new exception (`RetiredStatementError`) to signal use of retired
statements.
* Enhanced buffer allocation logic for column binding, including
stricter size checks and more accurate buffer sizing for various data
types and character encodings during fetch operations.
**Changelog update:**
* Documented the changes to `fetchall()` batch sizing and the new
handling of cleanup failures in the project changelog.
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
0 commit comments