Re: multiple database support: oracle backend

2007-10-18 Thread Ben Ford
Hi There, I've had similar problems and it comes down to the line in query.py that looks in backend and sets QuerySet to _QuerySet or backend.QuesrySet if there is one... I've also written some code to mitigate against this, and I'd suggest anyone with an interest gets together on this so that

Re: multiple database support: oracle backend

2007-10-17 Thread Carlos Hanson
On Oct 17, 1:29 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote: > On Oct 17, 12:33 am, koenb <[EMAIL PROTECTED]> wrote: > > > In the latest patches for multi-db the QuerySet that is returned is no > > longer fixed, but varies with the model's manager. That should fix > > that problem for now. > > >

Re: multiple database support: oracle backend

2007-10-17 Thread Carlos Hanson
On Oct 17, 12:33 am, koenb <[EMAIL PROTECTED]> wrote: > In the latest patches for multi-db the QuerySet that is returned is no > longer fixed, but varies with the model's manager. That should fix > that problem for now. > > Koen I've installed the latest patches for multi-db agains revision

Re: multiple database support: oracle backend

2007-10-17 Thread koenb
In the latest patches for multi-db the QuerySet that is returned is no longer fixed, but varies with the model's manager. That should fix that problem for now. Koen On 17 okt, 09:03, Ian <[EMAIL PROTECTED]> wrote: > I don't know anything about the multi-db branch, but I imagine that > whatever

Re: multiple database support: oracle backend

2007-10-17 Thread Ian
On Oct 16, 6:38 pm, Carlos Hanson <[EMAIL PROTECTED]> wrote: > I am having trouble with Django revision 6110 patched with multi- > db-6110.patch. > > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/local/lib64/python2.4/site-packages/django/db/models/ > query.py", line

Re: multiple database support: oracle backend

2007-10-17 Thread koenb
Sorry Carlos, those patches are far from complete, and I don't use Oracle myself. For the moment the backends in the patches use the following to get the connection: connection = self.model._default_manager.db.connection Removing the import and putting in that line should do the

multiple database support: oracle backend

2007-10-16 Thread Carlos Hanson
I am having trouble with Django revision 6110 patched with multi- db-6110.patch. Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib64/python2.4/site-packages/django/db/models/ query.py", line 108, in __repr__ return repr(self._get_data()) File