#12739: Inconsistent sorting behavior in mult-table inheritance query for
different
database backends
------------------------------------------+---------------------------------
Reporter: gsong | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
------------------------------------------+---------------------------------
Given the following models:
{{{
#!python
from django.db import models
class A(models.Model):
name = models.CharField(max_length=50)
class B(A):
pass
class C(A):
pass
}}}
The following query returns different queryset order for `sqlite3` vs.
`postgresql_psycopg2`:
{{{
#!python
A.objects.order_by('b', 'name')
}}}
SQLite will sort B objects, followed by C objects. PostgreSQL will sort C
objects, followed by B objects.
--
Ticket URL: <http://code.djangoproject.com/ticket/12739>
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.