1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[soc2009/multidb] Split SQL construction into two seperate classes, the Query class which stores data about a query being constructed, and a Compiler class which generates SQL.

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor
2009-11-21 07:03:40 +00:00
parent e9e73c4b68
commit 4f40925785
34 changed files with 1231 additions and 1219 deletions

View File

@@ -71,8 +71,6 @@ class PickleQuerySetTestCase(TestCase):
def test_pickling(self):
for db in connections:
qs = Book.objects.all()
self.assertEqual(qs.query.connection,
pickle.loads(pickle.dumps(qs)).query.connection)
self.assertEqual(qs._using, pickle.loads(pickle.dumps(qs))._using)