From 1786cd881ff4ad9458d56180ae555d92c14e5af8 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Sun, 15 Mar 2026 23:31:18 -0400 Subject: Refs #36795 -- Deprecated SQLCompiler.quote_name_unless_alias(). It has been superseded with .quote_name(), which ensures aliases are always quoted. --- docs/internals/deprecation.txt | 2 ++ docs/releases/6.1.txt | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 8962cbde62..b0d62e9879 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -67,6 +67,8 @@ details on these changes. * The ``Field.get_placeholder_sql`` shim over the deprecated ``get_placeholder`` method will be removed. +* The ``SQLCompiler.quote_name_unless_alias()`` method will be removed. + .. _deprecation-removed-in-6.1: 6.1 diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt index 82d17d5501..ad602c5e4f 100644 --- a/docs/releases/6.1.txt +++ b/docs/releases/6.1.txt @@ -519,6 +519,11 @@ Miscellaneous to be provided expressions meant to be compiled via the provided ``compiler`` argument. +* The ``quote_name_unless_alias()`` method of ``SQLCompiler``, the type of + object passed as the ``compiler`` argument to the ``as_sql()`` method of + :ref:`expressions `, is deprecated in + favor of the newly introduced ``quote_name()`` method. + Features removed in 6.1 ======================= -- cgit v1.3