mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #28689 -- Fixed unquoted table names in Subquery SQL when using OuterRef.
Regression in f48bc7c3db
.
This commit is contained in:
parent
171c7cc863
commit
81e357a7e1
4 changed files with 10 additions and 1 deletions
|
@ -545,6 +545,11 @@ class BasicExpressionsTests(TestCase):
|
|||
expr = FuncB(FuncA())
|
||||
self.assertEqual(expr.output_field, FuncA.output_field)
|
||||
|
||||
def test_outerref_mixed_case_table_name(self):
|
||||
inner = Result.objects.filter(result_time__gte=OuterRef('experiment__assigned'))
|
||||
outer = Result.objects.filter(pk__in=Subquery(inner.values('pk')))
|
||||
self.assertFalse(outer.exists())
|
||||
|
||||
|
||||
class IterableLookupInnerExpressionsTests(TestCase):
|
||||
@classmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue