Monday, May 24, 2010

multi table inheritance ordering bug in postgreSQL backend?

class Dokument(Model):
...
class Meta:
abstract = True
ordering = ['id']

class SupisMajetku(Dokument):
...

class Pozemok(SupisMajetku):
...

--------------------------------------

is producing this SQL:

--------------------------------------

SELECT "supisy_supismajetku"."id", ... FROM "supisy_pozemok" INNER
JOIN "supisy_supismajetku" ON ("supisy_pozemok"."supismajetku_ptr_id"
= "supisy_supismajetku"."id") WHERE ...

--------------------------------------

whitout any ORDERING clause. Seems to be the backend for postgreSQL is
bad. Any suggestions or experience ?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate