1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix an assert() failure that could be triggered by a correlated sub-query in a RETURNING clause.

FossilOrigin-Name: 551260c8625828262809b1ef7acf5343a3527b7e167ca0cfd13b81e5ece0e66c
This commit is contained in:
dan
2021-03-05 15:10:33 +00:00
parent bc7819d176
commit a7e16a2f05
3 changed files with 12 additions and 8 deletions

View File

@@ -417,6 +417,7 @@ static int lookupName(
}
if( iCol<pTab->nCol ){
cnt++;
pMatch = 0;
#ifndef SQLITE_OMIT_UPSERT
if( pExpr->iTable==EXCLUDED_TABLE_NUMBER ){
testcase( iCol==(-1) );