From 2a9f44dfbe293a1217097acc34993f48c0139e99 Mon Sep 17 00:00:00 2001 From: Shai Berger Date: Thu, 14 Aug 2014 03:11:12 +0300 Subject: [PATCH] Fixed #21603 (again) -- Made a raw query in a test Oracle-compliant --- tests/raw_query/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/raw_query/tests.py b/tests/raw_query/tests.py index 7d81ee8ded..4c2bc211bb 100644 --- a/tests/raw_query/tests.py +++ b/tests/raw_query/tests.py @@ -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")