mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed #21603 (again) -- Made a raw query in a test Oracle-compliant
This commit is contained in:
parent
01801edd37
commit
2a9f44dfbe
@ -242,6 +242,6 @@ class RawQueryTests(TestCase):
|
||||
|
||||
def test_subquery_in_raw_sql(self):
|
||||
try:
|
||||
list(Book.objects.raw('SELECT "id" FROM (SELECT * FROM raw_query_book WHERE paperback) sq'))
|
||||
list(Book.objects.raw('SELECT id FROM (SELECT * FROM raw_query_book WHERE paperback IS NOT NULL) sq'))
|
||||
except InvalidQuery:
|
||||
self.fail("Using a subquery in a RawQuerySet raised InvalidQuery")
|
||||
|
Loading…
Reference in New Issue
Block a user