Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.2.X] Backport of r14545 from trunk.

Fixed a multiple_database test case that was failing in Oracle due to 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/branches/releases/1.2.X@14546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 80946dc0fa0ea8ca6245e7fec815edf8295ed396 1 parent e074d2b
Ian Kelly authored November 12, 2010
4  tests/regressiontests/multiple_database/tests.py
@@ -852,10 +852,10 @@ def test_raw(self):
852 852
         "test the raw() method across databases"
853 853
         dive = Book.objects.using('other').create(title="Dive into Python",
854 854
             published=datetime.date(2009, 5, 4))
855  
-        val = Book.objects.db_manager("other").raw('SELECT id FROM "multiple_database_book"')
  855
+        val = Book.objects.db_manager("other").raw('SELECT id FROM multiple_database_book')
856 856
         self.assertEqual(map(lambda o: o.pk, val), [dive.pk])
857 857
 
858  
-        val = Book.objects.raw('SELECT id FROM "multiple_database_book"').using('other')
  858
+        val = Book.objects.raw('SELECT id FROM multiple_database_book').using('other')
859 859
         self.assertEqual(map(lambda o: o.pk, val), [dive.pk])
860 860
 
861 861
     def test_select_related(self):

0 notes on commit 80946dc

Please sign in to comment.
Something went wrong with that request. Please try again.