diff options
author | drh <drh@noemail.net> | 2013-08-01 13:04:46 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-08-01 13:04:46 +0000 |
commit | 619a1305e77cc6382013fb1e9c406d8fb88ca600 (patch) | |
tree | dab4997708035a1e0c99a3749f6ef8cc70f56cfa /src/select.c | |
parent | cf0fd4a5fd0cbb5f87a2dea65893b76e59d5c413 (diff) | |
download | sqlite-619a1305e77cc6382013fb1e9c406d8fb88ca600.tar.gz sqlite-619a1305e77cc6382013fb1e9c406d8fb88ca600.zip |
Fill out an initial implementation of the sqlite3ExprImpliesExpr() function.
FossilOrigin-Name: 8e07aa2ad5579aeb82174ce5bd432ddb9c058bc1
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 fa35f4587..014feca8f 100644 --- a/src/select.c +++ b/src/select.c @@ -4177,7 +4177,7 @@ int sqlite3Select( ** Use the SQLITE_GroupByOrder flag with SQLITE_TESTCTRL_OPTIMIZER ** to disable this optimization for testing purposes. */ - if( sqlite3ExprListCompare(p->pGroupBy, pOrderBy)==0 + if( sqlite3ExprListCompare(p->pGroupBy, pOrderBy, -1)==0 && OptimizationEnabled(db, SQLITE_GroupByOrder) ){ pOrderBy = 0; } @@ -4198,7 +4198,7 @@ int sqlite3Select( ** BY and DISTINCT, and an index or separate temp-table for the other. */ if( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct - && sqlite3ExprListCompare(pOrderBy, p->pEList)==0 + && sqlite3ExprListCompare(pOrderBy, p->pEList, -1)==0 ){ p->selFlags &= ~SF_Distinct; p->pGroupBy = sqlite3ExprListDup(db, p->pEList, 0); |