#14185: Possible bad SQL at
http://docs.djangoproject.com/en/dev/ref/models/querysets/
---------------------------+------------------------------------------------
 Reporter:  Trindaz        |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Documentation  |     Version:  1.2       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 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

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14185>
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.

Reply via email to