#12717: query.as_sql crashes with multi-db and master/slave routing
---------------------------------------------------+------------------------
Reporter: jbalogh | Owner: nobody
Status: new | Milestone: 1.2
Component: Database layer (models, ORM) | Version: 1.2-alpha
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by russellm):
* needs_better_patch: => 0
* needs_docs: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* milestone: => 1.2
Comment:
The specific use case you mention is definitely a problem, but I think
there is might be something slightly deeper going on here - cross-database
joins should be using the allow_relation check; if a relation isn't
allowed, then the inner query should be rolled out to a result set, rather
than trying to do an inner query in SQL.
--
Ticket URL: <http://code.djangoproject.com/ticket/12717#comment:1>
Django <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.