diff options
author | drh <drh@noemail.net> | 2002-05-23 12:50:18 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2002-05-23 12:50:18 +0000 |
commit | 07d6e3a74c4c08be68d7f54065bad58c8e7cec2c (patch) | |
tree | 529d12f6d864d8e94fbccf71d24d29239cfd48b5 /src/update.c | |
parent | e4697f5e9031c0cb5a06a6bb4b0c8cb39a26ce7f (diff) | |
download | sqlite-07d6e3a74c4c08be68d7f54065bad58c8e7cec2c.tar.gz sqlite-07d6e3a74c4c08be68d7f54065bad58c8e7cec2c.zip |
Partial fix for ticket #49. The correct result is computed, but now we have
a memory leak. I'm not sure if the memory leak was pre-existing or a result
of this change. (CVS 581)
FossilOrigin-Name: 4d27ee411902a197cd72416ca9da9197d3f87f13
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update.c b/src/update.c index 95923ec18..89dbd1104 100644 --- a/src/update.c +++ b/src/update.c @@ -12,7 +12,7 @@ ** This file contains C code routines that are called by the parser ** to handle UPDATE statements. ** -** $Id: update.c,v 1.40 2002/05/21 11:38:12 drh Exp $ +** $Id: update.c,v 1.41 2002/05/23 12:50:19 drh Exp $ */ #include "sqliteInt.h" @@ -287,7 +287,7 @@ void sqliteUpdate( addr = sqliteVdbeAddOp(v, OP_ListRead, 0, 0); sqliteVdbeAddOp(v, OP_Dup, 0, 0); } - sqliteVdbeAddOp(v, OP_MoveTo, base, 0); + sqliteVdbeAddOp(v, OP_NotExists, base, addr); /* If the record number will change, push the record number as it ** will be after the update. (The old record number is currently |