summaryrefslogtreecommitdiff
path: root/django/db/backends/base/features.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2025-12-03 18:06:53 -0500
committerJacob Walls <jacobtylerwalls@gmail.com>2025-12-04 11:37:22 -0500
commit17d644c8e257c2ea5cc738fb7a9c47989e29bf09 (patch)
tree8cd96b4668e5334dc11a056b3c293e8e8579df45 /django/db/backends/base/features.py
parent26b0e2bb92caf2d16cabe455792350f20d6f42ca (diff)
Added DatabaseFeatures.prohibits_dollar_signs_in_column_aliases.
This is also applicable on CockroachDB.
Diffstat (limited to 'django/db/backends/base/features.py')
-rw-r--r--django/db/backends/base/features.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py
index 1e957d105e..38af239cbe 100644
--- a/django/db/backends/base/features.py
+++ b/django/db/backends/base/features.py
@@ -415,6 +415,10 @@ 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
+
# A set of dotted paths to tests in Django's test suite that are expected
# to fail on this database.
django_test_expected_failures = set()