diff options
Diffstat (limited to 'tests/queries')
| -rw-r--r-- | tests/queries/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py index 7ac8a65d42..f76a368021 100644 --- a/tests/queries/tests.py +++ b/tests/queries/tests.py @@ -1964,8 +1964,8 @@ class Queries5Tests(TestCase): def test_extra_select_alias_sql_injection(self): crafted_alias = """injected_name" from "queries_note"; --""" msg = ( - "Column aliases cannot contain whitespace characters, quotation marks, " - "semicolons, or SQL comments." + "Column aliases cannot contain whitespace characters, hashes, quotation " + "marks, semicolons, or SQL comments." ) with self.assertRaisesMessage(ValueError, msg): Note.objects.extra(select={crafted_alias: "1"}) |
