1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Fix a code comment in select.c. No code changes. (CVS 4539)

FossilOrigin-Name: cf41d6a00f658d2cd64ff9811a3b1270ad1a580b
This commit is contained in:
danielk1977
2007-11-12 15:40:41 +00:00
parent 3c4809a201
commit 0318d4414d
3 changed files with 10 additions and 9 deletions

View File

@@ -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);