#14185 closed (fixed)
Possible bad SQL at http://docs.djangoproject.com/en/dev/ref/models/querysets/
Reported by: | Dave Trindall | Owned by: | Luke Plant |
---|---|---|---|
Component: | Documentation | Version: | 1.2 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Shouldn't
SELECT blog_entry.*, (pub_date > '2006-01-01')
FROM blog_entry;
be
SELECT blog_entry.*, (pub_date > '2006-01-01') AS is_recent
FROM blog_entry;
on http://docs.djangoproject.com/en/dev/ref/models/querysets/
Cheers,
Dave
Change History (3)
comment:1 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 14 years ago
Note:
See TracTickets
for help on using tickets.
The example is perfectly valid SQL, and it is not intended to document exactly what SQL is generated. However, for clarity and consistency with the other examples it would be useful to make the change you suggest.