summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2026-03-15 23:31:18 -0400
committerJacob Walls <jacobtylerwalls@gmail.com>2026-03-19 12:24:17 -0400
commit1786cd881ff4ad9458d56180ae555d92c14e5af8 (patch)
tree6eb2661f3648b6645336cd6e5eb66989f9d2c6b1 /docs
parent5146449a38222dc74f8f1ba88a7a7ef681e93101 (diff)
Refs #36795 -- Deprecated SQLCompiler.quote_name_unless_alias().
It has been superseded with .quote_name(), which ensures aliases are always quoted.
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt2
-rw-r--r--docs/releases/6.1.txt5
2 files changed, 7 insertions, 0 deletions
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 <writing-your-own-query-expressions>`, is deprecated in
+ favor of the newly introduced ``quote_name()`` method.
+
Features removed in 6.1
=======================