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 9b4cd66
Browse filesBrowse the repository at this point in the historyBrowse files
FIX: Preserve executemany values with lossless batch inference (#907)
### 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 -->
>
[AB#50465](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/50465)
<!-- External contributors: GitHub Issue -->
> N/A — maintainer ADO reference above.
-------------------------------------------------------------------
### Summary
<!-- Insert your summary of changes below. Minimum 10 characters
required. -->
Fix lossless `executemany` inference across Unicode, Decimal, and
mixed-type batches. Compute batch text metadata natively, preserve
explicit overrides and rowcounts, and retain embedded/trailing NULs
during binding and retrieval. Add boundary, ordering, NULL, subclass,
and recovery regression coverage.
Validation: **2,287 related runtime tests passed**, with 64
existing/platform/build-dependent skips; **4 strict typing checks
passed**; pinned full-directory formatting and `git diff --check`
passed. Validation used Windows x64, Python 3.13.17, and SQL Server
15.0.4382.1. Cross-platform CI is still required.
Native metadata computation avoids Python character loops and encoded
copies. Local long-Unicode benchmarks were 61–76% faster than the
earlier correct fix. Comparisons with original HEAD had small variable
differences; no zero-overhead guarantee. Incompatible mixed types use
slower individual execution to preserve values.
<!--
### 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 performance improvements
PERF: (short-description)
> For AI tooling, agents, skills, prompts, or AI-assisted development
workflows
AI: (short-description)
> For release related changes
RELEASE: #<RELEASE_VERSION> (short-description)
### Contribution Guidelines
External contributors:
- Create a GitHub issue first:
https://github.com/microsoft/mssql-python/issues/new
- Link the GitHub issue in the "GitHub Issue" section above
- Follow the PR title format and provide a meaningful summary
mssql-python maintainers:
- Create an ADO Work Item following internal processes
- Link the ADO Work Item in the "ADO Work Item" section above
- Follow the PR title format and provide a meaningful summary
-->
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
0 commit comments