#13528: db_table truncation is applied based on the properties of the default
database
-------------------------------------+-------------------------------------
Reporter: russellm | Owner:
Type: Bug | andrewgodwin
Component: Database layer | Status: assigned
(models, ORM) | Version: 1.2-beta
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by akaariai):
Ive been thinking that model._meta should contain backend specific
sections. This should contain at least quoted db_table name and column
names. In addition to solving this problem such an arrangement should
speed up SQL generation. Quoting the table and column names can consume a
significant amount of time.
So, instead of doing model._meta.db_table you would do something like
model._meta[conn].db_table. However, this requires somewhat extensive
changes in the sql/query.py and sql/compiler.py, so I guess this has to
wait...
--
Ticket URL: <https://code.djangoproject.com/ticket/13528#comment:13>
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.