#18218: get_table_list in postgresql introspection is unordered
-------------------------------------+-------------------------------------
Reporter: claudep | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: master
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: introspection | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by akaariai):
I went the easy route and just made introspection.table_names() return
sorted() table names. This avoids the use of the Database's ORDER BY. I
also reordered the introspection methods & usage a little, that is
get_table_list() is never used directly outside of backends, always use
table_names() instead.
See https://github.com/django/django/pull/16
--
Ticket URL: <https://code.djangoproject.com/ticket/18218#comment:4>
Django <https://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.