diff options
author | drh <drh@noemail.net> | 2008-01-05 04:06:03 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-01-05 04:06:03 +0000 |
commit | b1fdb2adea877989a87abb4e7426a34254e43b6c (patch) | |
tree | d83d76b1424e3f9f14762ed988348d95315d25cd /src/trigger.c | |
parent | 4c583128bd7c86d535a81af38665866213020164 (diff) | |
download | sqlite-b1fdb2adea877989a87abb4e7426a34254e43b6c.tar.gz sqlite-b1fdb2adea877989a87abb4e7426a34254e43b6c.zip |
Get rid of OP_Dup, OP_MemStore, OP_MemLoad, and OP_MemMove. Replace
with OP_Copy, OP_SCopy, and OP_Move. Add the infrastructure for
operation properties in1, in2, in3, out2, and out3 but do not yet
use any of these. (CVS 4682)
FossilOrigin-Name: cc149eb9ca3c672cc6fea3528353234ac2ed5745
Diffstat (limited to 'src/trigger.c')
-rw-r--r-- | src/trigger.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/trigger.c b/src/trigger.c index c6ec0e081..9fe781f00 100644 --- a/src/trigger.c +++ b/src/trigger.c @@ -237,8 +237,8 @@ void sqlite3FinishTrigger( { OP_String8, 0, 0, 0 }, /* 6: SQL */ { OP_Concat, 0, 0, 0 }, { OP_MakeRecord, 5, 0, 0 }, /* 8: "aaada" */ - { OP_MemStore, 0, 1, 0 }, /* 9: Store data */ - { OP_MemStore, 0, 1, 0 }, /* 10: Store key */ + { OP_Move, 0, 0, 0 }, /* 9: Store data */ + { OP_Move, 0, 0, 0 }, /* 10: Store key */ { OP_Insert, 0, 0, 0 }, }; int addr; @@ -258,9 +258,9 @@ void sqlite3FinishTrigger( sqlite3VdbeChangeP4(v, addr+5, "CREATE TRIGGER ", P4_STATIC); sqlite3VdbeChangeP4(v, addr+6, (char*)pAll->z, pAll->n); sqlite3VdbeChangeP4(v, addr+8, "aaada", P4_STATIC); - sqlite3VdbeChangeP1(v, addr+9, iData); + sqlite3VdbeChangeP2(v, addr+9, iData); + sqlite3VdbeChangeP2(v, addr+10, iKey); sqlite3VdbeChangeP2(v, addr+11, iData); - sqlite3VdbeChangeP1(v, addr+10, iKey); sqlite3VdbeChangeP3(v, addr+11, iKey); sqlite3ChangeCookie(db, v, iDb); sqlite3VdbeAddOp2(v, OP_Close, 0, 0); |