0
0
mirror of https://github.com/django/django.git synced 2024-11-24 11:48:10 +01:00

Fixed #21603 (again) -- Made a raw query in a test Oracle-compliant

This commit is contained in:
Shai Berger 2014-08-14 03:11:12 +03:00
parent 01801edd37
commit 2a9f44dfbe

View File

@ -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")