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):
|
def test_subquery_in_raw_sql(self):
|
||||||
try:
|
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:
|
except InvalidQuery:
|
||||||
self.fail("Using a subquery in a RawQuerySet raised InvalidQuery")
|
self.fail("Using a subquery in a RawQuerySet raised InvalidQuery")
|
||||||
|
|
Loading…
Reference in New Issue