1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Reset the column cache before coding each step of a trigger program. Candidate fix for #3554. (CVS 6065)

FossilOrigin-Name: a1b1f6cd7d2c060bd75ce39347e1220b872806ed
This commit is contained in:
danielk1977
2008-12-26 07:56:39 +00:00
parent 8044294743
commit 45783d0148
4 changed files with 78 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
*************************************************************************
**
**
** $Id: trigger.c,v 1.132 2008/12/10 19:26:24 drh Exp $
** $Id: trigger.c,v 1.133 2008/12/26 07:56:39 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -672,6 +672,7 @@ static int codeTriggerProgram(
sqlite3VdbeAddOp2(v, OP_ContextPush, 0, 0);
VdbeComment((v, "begin trigger %s", pStepList->pTrig->name));
while( pTriggerStep ){
sqlite3ExprClearColumnCache(pParse, -1);
orconf = (orconfin == OE_Default)?pTriggerStep->orconf:orconfin;
pParse->trigStack->orconf = orconf;
switch( pTriggerStep->op ){