aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2007-11-12 15:40:41 +0000
committerdanielk1977 <danielk1977@noemail.net>2007-11-12 15:40:41 +0000
commit0318d4414d0ec069a4e4fcdfc0af777f98d8229c (patch)
tree12aaee4696f2ddec3acdd1510fe380b3a435ae47 /src
parent3c4809a2017488fb4ccd9e10f6efcd1570e16893 (diff)
downloadsqlite-0318d4414d0ec069a4e4fcdfc0af777f98d8229c.tar.gz
sqlite-0318d4414d0ec069a4e4fcdfc0af777f98d8229c.zip
Fix a code comment in select.c. No code changes. (CVS 4539)
FossilOrigin-Name: cf41d6a00f658d2cd64ff9811a3b1270ad1a580b
Diffstat (limited to 'src')
-rw-r--r--src/select.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/select.c b/src/select.c
index 7298251c2..f165a221f 100644
--- a/src/select.c
+++ b/src/select.c
@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle SELECT statements in SQLite.
**
-** $Id: select.c,v 1.360 2007/11/12 15:29:19 danielk1977 Exp $
+** $Id: select.c,v 1.361 2007/11/12 15:40:42 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -3067,7 +3067,8 @@ int sqlite3Select(
}
#endif
- /* If possible, rewrite the query to use GROUP BY instead of
+ /* If possible, rewrite the query to use GROUP BY instead of DISTINCT.
+ ** GROUP BY may use an index, DISTINCT never does.
*/
if( p->isDistinct && !p->isAgg && !p->pGroupBy ){
p->pGroupBy = sqlite3ExprListDup(db, p->pEList);