diff options
author | dan <Dan Kennedy> | 2022-05-27 15:33:51 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2022-05-27 15:33:51 +0000 |
commit | ca29bbce2f7124c56ee3be96989a620e196a545d (patch) | |
tree | 9da0409bb2c217d2055aeb1f0b1332c0a0465f61 /src | |
parent | 4209d553e7044c0993236335ce74cf865f84ed3b (diff) | |
download | sqlite-ca29bbce2f7124c56ee3be96989a620e196a545d.tar.gz sqlite-ca29bbce2f7124c56ee3be96989a620e196a545d.zip |
Fix another problem with ALTER TABLE and UPDATE...FROM in triggers.
FossilOrigin-Name: 33cf12235e6469ba17cfb72cef0e480dfd0dea81ed412fb1fb24b05dbeb8dc02
Diffstat (limited to 'src')
-rw-r--r-- | src/alter.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/alter.c b/src/alter.c index 12bf3d5ae..9ccab37c7 100644 --- a/src/alter.c +++ b/src/alter.c @@ -1318,21 +1318,18 @@ static int renameResolveTrigger(Parse *pParse){ SrcList *pSrc = sqlite3TriggerStepSrc(pParse, pStep); if( pSrc ){ Select *pSel = sqlite3SelectNew( - pParse, pStep->pExprList, pSrc, pStep->pWhere, 0, 0, 0, 0, 0 + pParse, pStep->pExprList, pSrc, 0, 0, 0, 0, 0, 0 ); if( pSel==0 ){ pStep->pExprList = 0; - pStep->pWhere = 0; pSrc = 0; rc = SQLITE_NOMEM; }else{ sqlite3SelectPrep(pParse, pSel, 0); rc = pParse->nErr ? SQLITE_ERROR : SQLITE_OK; assert( pStep->pExprList==0 || pStep->pExprList==pSel->pEList ); - assert( pStep->pWhere==pSel->pWhere ); assert( pSrc==pSel->pSrc ); if( pStep->pExprList ) pSel->pEList = 0; - pSel->pWhere = 0; pSel->pSrc = 0; sqlite3SelectDelete(db, pSel); } |