diff options
author | drh <drh@noemail.net> | 2019-12-28 02:40:49 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-12-28 02:40:49 +0000 |
commit | b97f3532f55af5faa4d8e6256577437b4e50ec06 (patch) | |
tree | 1cd9f8e685a1b983c3a381f84f0ae3448e9a7391 /src/expr.c | |
parent | d9670abb582fc32dcce08fa143abef5f19029e56 (diff) | |
download | sqlite-b97f3532f55af5faa4d8e6256577437b4e50ec06.tar.gz sqlite-b97f3532f55af5faa4d8e6256577437b4e50ec06.zip |
Convert an assert() back into a conditional. The conditional was converted
into an assert() by check-in [6ae4ad6ebee4db88] (2009-05-28) because we were
unable to find a test case for it. Yongheng's fuzzer just now
found that test case.
FossilOrigin-Name: 4d0b9109f7a5312d4e136395e08b11dad64d746bc106ad44d47675e5b1dcb4ef
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index a5f9a43af..76ffea3f1 100644 --- a/src/expr.c +++ b/src/expr.c @@ -2292,7 +2292,7 @@ static Select *isCandidateForInOpt(Expr *pX){ testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate ); return 0; /* No DISTINCT keyword and no aggregate functions */ } - assert( p->pGroupBy==0 ); /* Has no GROUP BY clause */ + if( p->pGroupBy ) return 0; /* Has no GROUP BY clause */ if( p->pLimit ) return 0; /* Has no LIMIT clause */ if( p->pWhere ) return 0; /* Has no WHERE clause */ pSrc = p->pSrc; |