mssql-django 1.7.4 Released Note

mssql-django 1.7.4 Released

The mssql-django 1.7.4 release is now available on PyPI. This update primarily addresses two specific issues within raw and annotated GROUP BY query handling. First, it resolves an IndexError that could occur when GROUP BY queries combined escaped double percent signs, representing a literal percent, with actual parameters. The placeholder rewriting logic has been improved to correctly distinguish between literal '%%' and '%s' placeholders, ensuring these queries now execute without error. Second, the release fixes a NotImplementedError encountered when passing IntegerChoices values into raw GROUP BY queries. The updated type checking mechanism uses isinstance, allowing IntegerChoices parameters to be handled properly, maintaining consistent behavior with boolean and standard integer types. This patch release also includes new regression tests for both escaped percent handling and IntegerChoices in raw GROUP BY queries. Importantly, mssql-django 1.7.4 is a backward-compatible release, introducing no breaking changes for existing users. The developers express gratitude to users who reported these issues, as their feedback enhances the library's reliability. Users encountering problems are encouraged to open issues on the project's GitHub repository. The release notes and PyPI links provide further details.