#2945: DB Api - non-numeric __getitem__ parameter being inserted into LIMIT
clause
---------------------------------+------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Database wrapper
Version: SVN | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------------------+------------------------------------------
Changes (by [EMAIL PROTECTED]):
* summary: DB Api - "count" being inserted => DB Api - non-numeric
__getitem__ parameter being inserted into LIMIT
clause
Comment:
A coworker just ran into this same problem, and it appears that
QuerySet.__getitem__ is not checking that its parameter is an integer (or
at least a numeric string).
We had a template that had had ''{% for item in dates.items %}'' where
''dates'' had once been a dict but was now a QuerySet, and this triggered
the error. It should be quite easy to replicate/track down.
--
Ticket URL: <http://code.djangoproject.com/ticket/2945#comment:4>
Django Code <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
-~----------~----~----~----~------~----~------~--~---