mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #17056 -- Tweaked insert SQL clause generation so a corner case doesn't fail with Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1868,3 +1868,12 @@ class UnionTests(unittest.TestCase):
|
||||
Q1 = Q(objecta__name='one', objectc__objecta__name='two')
|
||||
Q2 = Q(objecta__objectc__name='ein', objectc__objecta__name='three', objecta__objectb__name='trois')
|
||||
self.check_union(ObjectB, Q1, Q2)
|
||||
|
||||
|
||||
class DefaultValuesInsertTest(TestCase):
|
||||
def test_no_extra_params(self):
|
||||
# Ticket #17056 -- affects Oracle
|
||||
try:
|
||||
DumbCategory.objects.create()
|
||||
except TypeError:
|
||||
self.fail("Creation of an instance of a model with only the PK field shouldn't error out after bulk insert refactoring (#17056)")
|
||||
|
||||
Reference in New Issue
Block a user