aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-01-04 01:20:28 +0000
committerdrh <drh@noemail.net>2007-01-04 01:20:28 +0000
commit89c69d00bde9be8f7b2265c859ec1a08a9e2e0f1 (patch)
tree6594cee8419d231e2370f732d69977af647d596b /src/expr.c
parent0bc5370cac7d17f7e2cc3540fe5df2e21085714c (diff)
downloadsqlite-89c69d00bde9be8f7b2265c859ec1a08a9e2e0f1.tar.gz
sqlite-89c69d00bde9be8f7b2265c859ec1a08a9e2e0f1.zip
Fix for ticket #2141. (CVS 3552)
FossilOrigin-Name: 70f5f3b85f30bbec0ddc59ba364e1229c09ed636
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index 1d5e186a0..aa70bdd9c 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -12,7 +12,7 @@
** This file contains routines used for analyzing expressions and
** for generating VDBE code that evaluates expressions in SQLite.
**
-** $Id: expr.c,v 1.270 2006/12/16 16:25:15 drh Exp $
+** $Id: expr.c,v 1.271 2007/01/04 01:20:29 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -2208,6 +2208,7 @@ static int analyzeAggregate(void *pArg, Expr *pExpr){
switch( pExpr->op ){
+ case TK_AGG_COLUMN:
case TK_COLUMN: {
/* Check to see if the column is in one of the tables in the FROM
** clause of the aggregate query */