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

Fix some issues with out-of-memory recovery. (CVS 4710)

FossilOrigin-Name: 23181f86896e7c9e993e00032e735e67ee6b2e71
This commit is contained in:
drh
2008-01-13 19:02:11 +00:00
parent 949f9cd565
commit 0e359b30a9
5 changed files with 16 additions and 15 deletions

View File

@@ -765,6 +765,7 @@ int sqlite3CodeRowTrigger(
u32 *piNewColMask /* OUT: Mask of columns used from the NEW.* table */
){
Trigger *p;
sqlite3 *db = pParse->db;
TriggerStack trigStackEntry;
trigStackEntry.oldColMask = 0;
@@ -777,7 +778,6 @@ int sqlite3CodeRowTrigger(
for(p=pTab->pTrigger; p; p=p->pNext){
int fire_this = 0;
sqlite3 *db = pParse->db;
/* Determine whether we should code this trigger */
if(
@@ -808,7 +808,7 @@ int sqlite3CodeRowTrigger(
#ifndef SQLITE_OMIT_TRACE
sqlite3VdbeAddOp4(pParse->pVdbe, OP_Trace, 0, 0, 0,
sqlite3_mprintf("-- TRIGGER %s", p->name),
sqlite3MPrintf(db, "-- TRIGGER %s", p->name),
P4_DYNAMIC);
#endif
memset(&sNC, 0, sizeof(sNC));