mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed insert/update handling when no database interaction is required.
Fixed #10205 as part of this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9926 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1081,6 +1081,12 @@ outer joins, so that all results are included.
|
||||
>>> _ = Plaything.objects.create(name="p1")
|
||||
>>> Plaything.objects.all()
|
||||
[<Plaything: p1>]
|
||||
|
||||
Bug #10205 -- When bailing out early because of an empty "__in" filter, we need
|
||||
to set things up correctly internally so that subqueries can continue properly.
|
||||
>>> Tag.objects.filter(name__in=()).update(name="foo")
|
||||
0
|
||||
|
||||
"""}
|
||||
|
||||
# In Python 2.3 and the Python 2.6 beta releases, exceptions raised in __len__
|
||||
|
||||
Reference in New Issue
Block a user