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

Fix name resolution problem in sub-selects within triggers, ticket [4ef7e3cfca].

FossilOrigin-Name: 5bcd0b1ca5d73ffbe7978ee9d73fe5e769e3d3a2
This commit is contained in:
mistachkin
2014-03-04 11:29:42 +00:00
parent ffe6bc2b93
commit 9d42cc994c
3 changed files with 9 additions and 7 deletions

View File

@@ -337,6 +337,8 @@ static int lookupName(
}else if( op!=TK_INSERT && sqlite3StrICmp("old",zTab)==0 ){
pExpr->iTable = 0;
pTab = pParse->pTriggerTab;
}else{
pTab = 0;
}
if( pTab ){