Skip to content

chore(deps-dev): bump mssql-django from 1.7 to 1.7.2#74

Merged
andres-sole merged 4 commits into
masterfrom
dependabot/pip/mssql-django-1.7.2
May 27, 2026
Merged

chore(deps-dev): bump mssql-django from 1.7 to 1.7.2#74
andres-sole merged 4 commits into
masterfrom
dependabot/pip/mssql-django-1.7.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 26, 2026

Bumps mssql-django from 1.7 to 1.7.2.

Release notes

Sourced from mssql-django's releases.

1.7.2

mssql-django 1.7.2 Release Notes (May 2026)

mssql-django 1.7.2 is a patch release that fixes timezone handling bugs and resolves a Django 4.0+ compatibility issue with .explain().


Bug Fixes

FIX: AttributeError on .explain() for Django 4.0+ (#409, #524)

  • What changed: Django 4.0 replaced query.explain_format and query.explain_options with a single query.explain_info namedtuple. The compiler was still referencing the removed attributes, causing an AttributeError when .explain() was called (e.g., via DjangoQL in Django admin). The compiler now version-gates the attribute access: explain_info.format/.options on Django 4.0+, falling back to the old attributes on earlier versions. A regression test was added.
  • Who benefits: Anyone using .explain() or tools like DjangoQL on Django 4.0+
  • Impact: .explain() now correctly raises NotSupportedError instead of crashing with AttributeError

FIX: DATETIMEOFFSET timezone support and Now() with USE_TZ=True (#484, closes #371, closes #136)

  • What changed: Two related timezone bugs were fixed:
    1. handle_datetimeoffset was discarding the timezone offset bytes returned by SQL Server, returning naive datetimes from DATETIMEOFFSET columns. The function now parses the full 9-element struct (including tz_offset_hour and tz_offset_minute) and returns timezone-aware datetimes. This completes the original fix from PR #140 which accidentally dropped the offset parsing.
    2. sqlserver_now() always emitted SYSDATETIME(), which returns server-local time without an offset. When USE_TZ=True and the SQL Server host was not in UTC, Django would misinterpret the local time as UTC, causing timestamps to shift. Now() now emits SYSDATETIMEOFFSET() when settings.USE_TZ=True, and SYSDATETIME() otherwise.
  • Who benefits: Applications using USE_TZ=True on non-UTC SQL Server hosts, and anyone with DATETIMEOFFSET columns
  • Impact: auto_now, auto_now_add, and Now() annotations now produce correct timestamps. DATETIMEOFFSET columns return timezone-aware datetimes as intended.

Test Improvements

  • Removed return in finally that swallowed exceptions in test utility (#526, closes #417)
  • Added timezone offset tests: UTC, +05:30 (IST), -05:00 (EST), -09:30 (Marquesas), +05:45 (Nepal)
  • Added NowSQLTemplateTests verifying SYSDATETIMEOFFSET vs SYSDATETIME based on USE_TZ
  • Added ExplainRegressionTests for .explain() behavior

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. The DATETIMEOFFSET fix only affects the USE_TZ=True code path where Django already expects timezone-aware datetimes.


... (truncated)

Commits
  • dfefa13 RELEASE: 1.7.2
  • 574f470 FIX: Remove return in finally that swallows exceptions (#417) (#526)
  • 34888f4 FIX: Updates TimeZone support for DATETIMEOFFSET type, fixes incorrect Now() ...
  • 3545831 FIX: AttributeError on .explain() for Django 4.0+ (#409) (#524)
  • cfdd6d4 Update nightly schedule to 2:30 AM IST (9 PM UTC) (#523)
  • ecb0a0f RELEASE: 1.7.1 (#522)
  • 5d49f9d ci: upgrade Windows CI to SQL Server 2025 (JDBC-MMS2025-SQL2025) (#513)
  • 726164b Add regression test for descending index fields in AlterField (#405) (#521)
  • f4a794c Fix FieldDoesNotExist when AlterField with descending index fields (#405) (#519)
  • 927985c FIX: JSONField support under Microsoft Fabric (EngineEdition 12) (#518)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels May 26, 2026
@dependabot dependabot Bot requested a review from a team May 26, 2026 22:31
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels May 26, 2026
Bumps [mssql-django](https://github.com/microsoft/mssql-django) from 1.7 to 1.7.2.
- [Release notes](https://github.com/microsoft/mssql-django/releases)
- [Commits](microsoft/mssql-django@1.7...1.7.2)

---
updated-dependencies:
- dependency-name: mssql-django
  dependency-version: 1.7.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/mssql-django-1.7.2 branch from cfda17d to 07bb0fa Compare May 27, 2026 09:33
Bumps [mssql-django](https://github.com/microsoft/mssql-django) from 1.7 to 1.7.2.
- [Release notes](https://github.com/microsoft/mssql-django/releases)
- [Commits](microsoft/mssql-django@1.7...1.7.2)

---
updated-dependencies:
- dependency-name: mssql-django
  dependency-version: 1.7.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/mssql-django-1.7.2 branch from 07bb0fa to 4f58d8c Compare May 27, 2026 16:12
@andres-sole andres-sole merged commit 53e3310 into master May 27, 2026
18 checks passed
@andres-sole andres-sole deleted the dependabot/pip/mssql-django-1.7.2 branch May 27, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant