Ticket #8416: django_sqlite_test_case.diff

File django_sqlite_test_case.diff, 576 bytes (added by haakeyar, 16 years ago)

Simple test case. Passes in MySQL, but not in SQLite

  • tests/modeltests/lookup/models.py

     
    7979# Date and date/time lookups can also be done with strings.
    8080>>> Article.objects.filter(pub_date__exact='2005-07-27 00:00:00').count()
    81813L
     82>>> Article.objects.filter(pub_date__year='2005', pub_date__month='7', pub_date__day='28')
     83[<Article: Article 4>]
    8284
    8385# in_bulk() takes a list of IDs and returns a dictionary mapping IDs
    8486# to objects.
Back to Top