summaryrefslogtreecommitdiff
path: root/tests/regressiontests/multiple_database/tests.py
AgeCommit message (Collapse)Author
2009-12-21[soc2009/multidb] A couple of cleanups of multi-db support for raw queries, ↵Alex Gaynor
including a using() call on raw query sets. Patch from Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-21[soc2009/multidb] Remove cross database protection. This will be readded in ↵Alex Gaynor
a way that is more ammenable to master-slave and other mirroring schemes. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-21[soc2009/multidb] Correct the handling of raw and defered fields with multi-db.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11926 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-18[soc2009/multidb] Cleaned up the interaction between managers and the ↵Alex Gaynor
using() method by the addition of a db_manager() method. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-17[soc2009/multidb] Add multi-db support to fixture loading. Involves a rework ↵Alex Gaynor
of models in the multi-db test cases to make the fixture a complete test case. Patch from Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11891 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-17[soc2009/multidb] Updated contrib.auth User model for multi-db support. ↵Alex Gaynor
Patch from Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11890 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-17[soc2009/multidb] Updated content types to be multidb aware. Patch from ↵Alex Gaynor
Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-16[soc2009/multidb] Fixed a problem with m2m descriptors not sticking to the ↵Alex Gaynor
right database. Patch from Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11873 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-23[soc2009/multidb] Added test cases for cross-database assignment. Patch ↵Alex Gaynor
from Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-23[soc2009/multidb] Made instances sticky to the database that created them.Alex Gaynor
This involves: * Adding a _state attribute to instances to track instance state * Making db a state attribute, and making the db a public attribute on querysets. Patch from Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-23[soc2009/multidb] Updated testing services to handle multiple databases ↵Alex Gaynor
better. Includes extra tests (some failing) for multiple database support. Patch from Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-11-21[soc2009/multidb] Split SQL construction into two seperate classes, the ↵Alex Gaynor
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
2009-08-09[soc2009/multidb] Added tests for using foreign keys across multipled ↵Alex Gaynor
databases, ManyToMany tests will come after the merger of my many-to-many refactor work. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11425 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-08-05[soc2009/multidb] Removed several tests that were no longer needed as ↵Alex Gaynor
they're tested elsehwere git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-20[soc2009/multidb] Correctly handle pickling of Query objects, restoring them ↵Alex Gaynor
to the correct database. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-19[soc2009/multidb] Raise an exception at an attempt to do a subquery with 2 ↵Alex Gaynor
different databases. Eventually we'll just evaluate the 2 queries seperates. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-01[soc2009/multidb] Added a using option to a Model's Meta class. This allows ↵Alex Gaynor
you to select the default database for a specific model, in addition to the global default git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-19[soc2009/multidb] Added tests to ensure that objects aren't being created ↵Alex Gaynor
before they are supposed to be, which would indicate we weren't creating objects in the right DB. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11076 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-18[soc2009/multidb] Ensure that when a QuerySet is given a Query object in its ↵Alex Gaynor
construct that we correct the detect the connection that is being used git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11073 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-07[soc2009/multidb] Updated DateQuery to work correctly with multiple databasesAlex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10943 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-06[soc2009/multidb] Fixed the usage of the connection during Query ↵Alex Gaynor
construction, and defer it until actual SQL construction. In practice this means the GROUP BY optimization we do will be correctly applied based on the connection the Query is executed against, as oppossed to the on the QuerySet is targeting at the time the GROUP BY items are added git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-04[soc2009/multidb] Made filter SQL generation lazy when we aren't filtering ↵Alex Gaynor
on a specific field, also added additional tests git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-04[soc2009/multidb] Fixed the usage of using() on QuerySets in conjuction with ↵Alex Gaynor
create(), added tests for this git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-03[soc2009/multidb] Updated the test runner to support syncing all the ↵Alex Gaynor
databases django knows about so that tests can operate against more than one database git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10895 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-03[soc2009/multidb] Implemented a connections object that is responsible for ↵Alex Gaynor
tracking multiple database connections and lazily instantiating them. Also implemneted the DATABASES setting which replaces the various DATABASE_* settings git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10892 bcc190cf-cafb-0310-a4f2-bffc1f526a37