aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2021-05-20 23:25:28 +0000
committerdrh <>2021-05-20 23:25:28 +0000
commitec2f689b214a11fd8d4d0225cb6b8869a913cafd (patch)
tree10453a2210e573b269ed1b08eae94ad410901b6d /src/expr.c
parenta76b7f52961559a12f6581fc8c0242475c804840 (diff)
downloadsqlite-ec2f689b214a11fd8d4d0225cb6b8869a913cafd.tar.gz
sqlite-ec2f689b214a11fd8d4d0225cb6b8869a913cafd.zip
Fix a faulty assert() statement in sqlite3ExprListDup(). This is a continuation
of the fix at [59812e7ef705226c]. FossilOrigin-Name: 240f7494bfa3e0806ae2f971e78039c62a419de647cb9e807309f90e1d2a536d
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 7a2df30fd..6af6493c7 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -1508,7 +1508,8 @@ ExprList *sqlite3ExprListDup(sqlite3 *db, ExprList *p, int flags){
){
assert( pNewExpr->iColumn==0 || i>0 );
if( pNewExpr->iColumn==0 ){
- assert( pOldExpr->pLeft==pOldExpr->pRight );
+ assert( pOldExpr->pLeft==pOldExpr->pRight
+ || ExprHasProperty(pOldExpr->pLeft, EP_Subquery) );
pPriorSelectCol = pNewExpr->pLeft = pNewExpr->pRight;
}else{
assert( i>0 );