microsoft/mssql-django 1.7.4
microsoft/mssql-django
Captured source
source ↗published Jul 24, 2026seen 14hcaptured 14hhttp 200method plain
1.7.4
Repository: microsoft/mssql-django
Tag: 1.7.4
Published: 2026-07-24T11:50:12Z
Prerelease: no
Release notes:
mssql-django 1.7.4 Release Notes (July 2026)
mssql-django 1.7.4 is a patch release that fixes two bugs in raw and annotated GROUP BY query handling.
---
Bug Fixes
FIX: Preserve escaped %% in GROUP BY params (#537, closes #476)
- What changed:
GROUP BYqueries mixing escaped%%literals with real params no longer raiseIndexError; placeholder rewriting now only touches%%and%s. - Who benefits: Anyone running raw/annotated
GROUP BYqueries with escaped percent literals. - Impact: Those queries run correctly instead of erroring (also fixes one #394 case of silently wrong rows).
FIX: Support IntegerChoices params in raw GROUP BY queries (#541, closes #540)
- What changed: Passing an
IntegerChoicesvalue into a rawGROUP BYquery no longer raisesNotImplementedError; type checks now useisinstance. - Who benefits: Anyone passing enum choices as params into raw
GROUP BYqueries. - Impact: Enum choices bind correctly;
boolstill bindsBIT, plainintunchanged.
---
Test Improvements
- Regression tests for the escaped-
%%and unescaped-%GROUP BYpaths (#537) - Regression test for
IntegerChoicesin a rawGROUP BYquery (#541)
---
Version Compatibility
| Component | Supported Versions | |---|---| | Django | 3.2, 4.0, 4.1, 4.2, 5.0, 5.1, 5.2, 6.0 | | Python | 3.8 – 3.14 | | SQL Server | 2016, 2017, 2019, 2022, 2025; Azure SQL DB / Managed Instance / Microsoft Fabric | | ODBC Driver | 17 or 18 for SQL Server (v18 is the default) |
---
Breaking Changes
None. This is a fully backward-compatible patch release.
---
Contributors
All changes in this release were made by the maintainers. No external contributors this release.
---
Full Changelog
PRs included: #537, #541