diff options
| author | Tim Graham <timograham@gmail.com> | 2025-12-03 18:06:53 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-12-04 11:37:22 -0500 |
| commit | 17d644c8e257c2ea5cc738fb7a9c47989e29bf09 (patch) | |
| tree | 8cd96b4668e5334dc11a056b3c293e8e8579df45 /django/db/backends/base/features.py | |
| parent | 26b0e2bb92caf2d16cabe455792350f20d6f42ca (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.py | 4 |
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() |
