#13710: raw() sql bug when using a model with many fields with long names
---------------------------------------------------+------------------------
Reporter: Renskers | Owner: tobias
Status: reopened | Milestone:
Component: Database layer (models, ORM) | Version: 1.2
Resolution: | Keywords: raw sql
joins deffered class
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by Renskers):
* status: closed => reopened
* resolution: worksforme =>
Comment:
It only generates an error when your model has a lot of fields, which have
long names. The code in django/db/models/query_utils.py, line 267,
generates a string that is too long to handle. With "normal" models (i.e.
not a ton of fields with long names), the query does indeed work fine.
This is explained in my first comment on this ticket. I could create a
small Django project to prove this error, if that would help.
--
Ticket URL: <http://code.djangoproject.com/ticket/13710#comment:7>
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.