diff options
author | drh <drh@noemail.net> | 2008-07-08 18:05:26 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-07-08 18:05:26 +0000 |
commit | 0880a7463364f3fd0428c8457c89c5fefae977ea (patch) | |
tree | 476be7d82431ffa906a3bc9f5b7f8cc046f02df9 /src/select.c | |
parent | 49fc1f60b0129650dee601de0819fa1392d7bc70 (diff) | |
download | sqlite-0880a7463364f3fd0428c8457c89c5fefae977ea.tar.gz sqlite-0880a7463364f3fd0428c8457c89c5fefae977ea.zip |
Improved testing of the min/max optimization. (CVS 5373)
FossilOrigin-Name: fa07c360b708324c47c8e9931f1e2b1b24e4faf8
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select.c b/src/select.c index 9275c47d5..6effc49d5 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.448 2008/07/08 17:43:57 danielk1977 Exp $ +** $Id: select.c,v 1.449 2008/07/08 18:05:26 drh Exp $ */ #include "sqliteInt.h" @@ -4241,7 +4241,7 @@ int sqlite3Select( if( flag ){ pDel = pMinMax = sqlite3ExprListDup(db, p->pEList->a[0].pExpr->pList); if( pMinMax && !db->mallocFailed ){ - pMinMax->a[0].sortOrder = ((flag==WHERE_ORDERBY_MIN)?0:1); + pMinMax->a[0].sortOrder = flag!=WHERE_ORDERBY_MIN; pMinMax->a[0].pExpr->op = TK_COLUMN; } } |