mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
[soc2009/multidb] Merged up to trunk r11756.
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -755,10 +755,20 @@ Bug #6180, #6203 -- dates with limits and/or counts
|
||||
>>> Item.objects.dates('created', 'day')[0]
|
||||
datetime.datetime(2007, 12, 19, 0, 0)
|
||||
|
||||
Bug #7087 -- dates with extra select columns
|
||||
Bug #7087/#12242 -- dates with extra select columns
|
||||
>>> Item.objects.dates('created', 'day').extra(select={'a': 1})
|
||||
[datetime.datetime(2007, 12, 19, 0, 0), datetime.datetime(2007, 12, 20, 0, 0)]
|
||||
|
||||
>>> Item.objects.extra(select={'a': 1}).dates('created', 'day')
|
||||
[datetime.datetime(2007, 12, 19, 0, 0), datetime.datetime(2007, 12, 20, 0, 0)]
|
||||
|
||||
>>> name="one"
|
||||
>>> Item.objects.dates('created', 'day').extra(where=['name=%s'], params=[name])
|
||||
[datetime.datetime(2007, 12, 19, 0, 0)]
|
||||
|
||||
>>> Item.objects.extra(where=['name=%s'], params=[name]).dates('created', 'day')
|
||||
[datetime.datetime(2007, 12, 19, 0, 0)]
|
||||
|
||||
Bug #7155 -- nullable dates
|
||||
>>> Item.objects.dates('modified', 'day')
|
||||
[datetime.datetime(2007, 12, 19, 0, 0)]
|
||||
|
||||
Reference in New Issue
Block a user