mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
:-) (CVS 78)
FossilOrigin-Name: 923c14fe120c7d5470a18257659154c4f98226b7
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
** This file contains C code routines that are called by the parser
|
||||
** to handle SELECT statements.
|
||||
**
|
||||
** $Id: select.c,v 1.19 2000/06/08 01:55:30 drh Exp $
|
||||
** $Id: select.c,v 1.20 2000/06/08 11:13:02 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -796,6 +796,13 @@ int sqliteSelect(
|
||||
if( pHaving && sqliteExprAnalyzeAggregates(pParse, pHaving) ){
|
||||
return 1;
|
||||
}
|
||||
if( pOrderBy ){
|
||||
for(i=0; i<pOrderBy->nExpr; i++){
|
||||
if( sqliteExprAnalyzeAggregates(pParse, pOrderBy->a[i].pExpr) ){
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Begin generating code.
|
||||
|
||||
Reference in New Issue
Block a user