From 27b399d23531541d091886f683991e321c8fa314 Mon Sep 17 00:00:00 2001 From: David Smith Date: Fri, 18 Aug 2023 14:16:57 +0100 Subject: Fixed #34547 -- Deprecated DatabaseOperations.field_cast_sql(). --- docs/internals/deprecation.txt | 2 ++ docs/releases/5.0.txt | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index c9a8b05637..98b027cd1a 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -40,6 +40,8 @@ details on these changes. * Support for ``cx_Oracle`` will be removed. +* ``BaseDatabaseOperations.field_cast_sql()`` will be removed. + .. _deprecation-removed-in-5.1: 5.1 diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt index cae3668bfc..28814f141f 100644 --- a/docs/releases/5.0.txt +++ b/docs/releases/5.0.txt @@ -663,6 +663,11 @@ Miscellaneous * Support for ``cx_Oracle`` is deprecated in favor of `oracledb`_ 1.3.2+ Python driver. +* ``DatabaseOperations.field_cast_sql()`` is deprecated in favor of + ``DatabaseOperations.lookup_cast()``. Starting with Django 6.0, + ``BuiltinLookup.process_lhs()`` will no longer call ``field_cast_sql()``. + Third-party database backends should implement ``lookup_cast()`` instead. + .. _`oracledb`: https://oracle.github.io/python-oracledb/ Features removed in 5.0 -- cgit v1.3