#4747: [multi-db] patch to bring multiple-db-support up to date with rev 5598
------------------------------------------+---------------------------------
Reporter: ben <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Component:
Uncategorized
Version: other branch | Resolution:
Keywords: multiple-db-support | Stage: Ready for
checkin
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------------------------+---------------------------------
Comment (by ben <[EMAIL PROTECTED]>):
Koen has supplied a patch bringing multi-db up to -r6110. This is a
cut-n-past of the email he sent to me regarding the changes he's made:
* removed (most of) the schema evolution stuff (also the tests)
* get_db_prep_save gets the model instance so it can determine what
backend it uses (needed for mysql exception in datetimefield
* queryset gets set in manager since some backends have custom querysets
(eg oracle)
* (hopefully) all quote_name references have been resolved to the models
connection ops via model._default_manager.db.connection.ops.quote_name
* query.py: quote_only_if_word uses the backends quote_name (passed in)
* management stuff: syncdb put model connection determination all around,
seems to work, needs testing
* validation: needs a closer look
* sql: table_list ok, create ok, delete ?, flush NOT OK, others TO DO
* thread_isolation test failing : TODO
* test_client test failing (flush?): TODO
This means Unicode, backend and management refactoring should be more or
less ok.
There are some things to look at, but I need a break now.
I have not done to much testing yet though. I'll see when I can get round
to that (maybe later this evening when the kids are asleep).
I hope this helps.
Koen
--
Ticket URL: <http://code.djangoproject.com/ticket/4747#comment:4>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---