From 1c908784e6a1b8b9a0d690b09728ed9211e5a04f Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 15 Jul 2009 14:24:49 +0000 Subject: [PATCH] [1.0.X] Fixed #11235 -- Added a missing clause from some sample SQL in the queryset docs. Merge of r11239 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@11245 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/models/querysets.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 725b013d2c..efaadf4907 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -618,7 +618,7 @@ of the arguments is required, but you should use at least one of them. The resulting SQL of the above example would be:: - SELECT blog_blog.*, (SELECT COUNT(*) FROM blog_entry WHERE blog_entry.blog_id = blog_blog.id) + SELECT blog_blog.*, (SELECT COUNT(*) FROM blog_entry WHERE blog_entry.blog_id = blog_blog.id) AS entry_count FROM blog_blog; Note that the parenthesis required by most database engines around