summaryrefslogtreecommitdiff
path: root/tests/regressiontests/string_lookup
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-12 07:52:33 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-12 07:52:33 +0000
commit6294fc7179011847d8a9f906cf4939ebf9852265 (patch)
tree57691dced01b3499d4b96d5ce06baf562213bcbf /tests/regressiontests/string_lookup
parentca71eacdf431c341a799c424328db835a949891e (diff)
Changed "exact" matches in MySQL to use the database's native collation.
This effectively reverses the change in [7798]. It was proving too difficult to successfully manage all the side effects here and provide a satisfactory solution for everybody. Many thanks to arne, Martin von Löwis and, particular, Karen Tracey, for doing a lot of research and proto-patches here to establish what was possible and practical. This is backwards incompatible if you were relying on the behaviour after [7798]. The docs have been updated to indicate the solution. Refs #2170, #7789, #8102. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/string_lookup')
-rw-r--r--tests/regressiontests/string_lookup/models.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/regressiontests/string_lookup/models.py b/tests/regressiontests/string_lookup/models.py
index 39e7955592..1bdb2d4452 100644
--- a/tests/regressiontests/string_lookup/models.py
+++ b/tests/regressiontests/string_lookup/models.py
@@ -97,12 +97,6 @@ __test__ = {'API_TESTS': ur"""
>>> Article.objects.get(text__exact='The quick brown fox jumps over the lazy dog.')
<Article: Article Test>
-# Regression tests for #2170: test case sensitiveness
->>> Article.objects.filter(text__exact='tHe qUick bRown fOx jUmps over tHe lazy dog.')
-[]
->>> Article.objects.filter(text__iexact='tHe qUick bRown fOx jUmps over tHe lazy dog.')
-[<Article: Article Test>]
-
>>> Article.objects.get(text__contains='quick brown fox')
<Article: Article Test>