Skip to content

Commit

Permalink
Fixed a multiple_database test case that was failing in Oracle due to…
Browse files Browse the repository at this point in the history
… forced table name capitalization. The test case now matches the style used by the raw_query tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
nightflyerkilo committed Nov 12, 2010
1 parent 87a8046 commit 9892f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/regressiontests/multiple_database/tests.py
Expand Up @@ -853,10 +853,10 @@ def test_raw(self):
"test the raw() method across databases"
dive = Book.objects.using('other').create(title="Dive into Python",
published=datetime.date(2009, 5, 4))
val = Book.objects.db_manager("other").raw('SELECT id FROM "multiple_database_book"')
val = Book.objects.db_manager("other").raw('SELECT id FROM multiple_database_book')
self.assertEqual(map(lambda o: o.pk, val), [dive.pk])

val = Book.objects.raw('SELECT id FROM "multiple_database_book"').using('other')
val = Book.objects.raw('SELECT id FROM multiple_database_book').using('other')
self.assertEqual(map(lambda o: o.pk, val), [dive.pk])

def test_select_related(self):
Expand Down

0 comments on commit 9892f4c

Please sign in to comment.