summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2026-02-01 17:02:49 -0500
committerJacob Walls <jacobtylerwalls@gmail.com>2026-03-19 12:24:17 -0400
commit5146449a38222dc74f8f1ba88a7a7ef681e93101 (patch)
treecfe4afc77f73d7c0a35b754da075608b3294499b /django
parentf05fac88c4699c6d04a8f1ac3328cf6c7bd39228 (diff)
Refs #36795 -- Removed unnecessary prohibits_dollar_signs_in_column_aliases feature flag.
Now that user provided aliases are systematically quoted there is no need to disallow the usage of the dollar sign on Postgres.
Diffstat (limited to 'django')
-rw-r--r--django/db/backends/base/features.py4
-rw-r--r--django/db/backends/postgresql/features.py1
2 files changed, 0 insertions, 5 deletions
diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py
index 22c05f28e9..466f8199bf 100644
--- a/django/db/backends/base/features.py
+++ b/django/db/backends/base/features.py
@@ -420,10 +420,6 @@ class BaseDatabaseFeatures:
# Does the Round() database function round to even?
rounds_to_even = False
- # Should dollar signs be prohibited in column aliases to prevent SQL
- # injection?
- prohibits_dollar_signs_in_column_aliases = False
-
# Should PatternLookup.process_rhs() use self.param_pattern? It's unneeded
# on databases that don't use LIKE for pattern matching.
pattern_lookup_needs_param_pattern = True
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py
index b663adc90c..d3fae82a10 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -70,7 +70,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_nulls_distinct_unique_constraints = True
supports_no_precision_decimalfield = True
can_rename_index = True
- prohibits_dollar_signs_in_column_aliases = True
test_collations = {
"deterministic": "C",
"non_default": "sv-x-icu",