1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Refs #29155 -- Fixed LookupTests.test_pattern_lookups_with_substr() crash on Oracle.

Test introduced in feb683c4c2 revealed
unexpected behavior on Oracle that allows concatenating NULL with string.
This commit is contained in:
Mariusz Felisiak 2018-03-15 14:54:24 +01:00 committed by Tim Graham
parent 87dc0844a6
commit ba3078c92d

View File

@ -15,8 +15,8 @@ class LookupTests(TestCase):
def setUp(self): def setUp(self):
# Create a few Authors. # Create a few Authors.
self.au1 = Author.objects.create(name='Author 1') self.au1 = Author.objects.create(name='Author 1', alias='a1')
self.au2 = Author.objects.create(name='Author 2') self.au2 = Author.objects.create(name='Author 2', alias='a2')
# Create a few Articles. # Create a few Articles.
self.a1 = Article.objects.create( self.a1 = Article.objects.create(
headline='Article 1', headline='Article 1',