Anonymous committed 3c70d05

[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.

  • Participants
  • Parent commits f77a7c1
  • Branches releases/1.2.X

Comments (0)

Files changed (1)

File tests/regressiontests/multiple_database/

         "test the raw() method across databases"
         dive = Book.objects.using('other').create(title="Dive into Python",
   , 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:, val), [])
-        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:, val), [])
     def test_select_related(self):