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
1 changed files with 1 additions and 1 deletions

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