1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

[4.1.x] Refs CVE-2022-34265 -- Unified DatabaseOperations._convert_*_to_tz() hook names.

Backport of 5e2f4ddf29 from main
This commit is contained in:
Mariusz Felisiak
2022-07-09 13:02:07 +02:00
parent a3d35af26a
commit 7d59c6d37c
3 changed files with 18 additions and 14 deletions

View File

@@ -459,6 +459,10 @@ backends.
``DatabaseOperations.insert_statement()`` method is replaced by
``on_conflict`` that accepts ``django.db.models.constants.OnConflict``.
* ``DatabaseOperations._convert_field_to_tz()`` is replaced by
``DatabaseOperations._convert_sql_to_tz()`` that accepts the ``sql``,
``params``, and ``tzname`` arguments.
* Several date and time methods on ``DatabaseOperations`` now take ``sql`` and
``params`` arguments instead of ``field_name`` and return 2-tuple containing
some SQL and the parameters to be interpolated into that SQL. The changed