aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-11-11 18:19:05 +0000
committerdrh <drh@noemail.net>2016-11-11 18:19:05 +0000
commitd95ef5cb5a6ef94211463d18e22259bcc48d7266 (patch)
tree40682b25c07ee1cc6b087cb8472260bc79554e85 /src/insert.c
parent79297d1d5979a82655590db1c53f76942ebc4b40 (diff)
downloadsqlite-d95ef5cb5a6ef94211463d18e22259bcc48d7266.tar.gz
sqlite-d95ef5cb5a6ef94211463d18e22259bcc48d7266.zip
Remove obselete and unused logic in the update code generator.
Fix the sqlite3BtreeMovetoUnpacked() routine so that it remembers the rowid of the row that it landed on. FossilOrigin-Name: 1a587d72f981cb7064cfd8916a52a83ad9ba6074
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/insert.c b/src/insert.c
index a5852fd32..59bc99b52 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -1260,7 +1260,6 @@ void sqlite3GenerateConstraintChecks(
int ipkBottom = 0; /* Bottom of the rowid change constraint check */
u8 isUpdate; /* True if this is an UPDATE operation */
u8 bAffinityDone = 0; /* True if the OP_Affinity operation has been run */
- int regRowid = -1; /* Register holding ROWID value */
isUpdate = regOldData!=0;
db = pParse->db;
@@ -1526,9 +1525,7 @@ void sqlite3GenerateConstraintChecks(
VdbeComment((v, "%s column %d", pIdx->zName, i));
}else{
if( iField==XN_ROWID || iField==pTab->iPKey ){
- if( regRowid==regIdx+i ) continue; /* ROWID already in regIdx+i */
x = regNewData;
- regRowid = pIdx->pPartIdxWhere ? -1 : regIdx+i;
}else{
x = iField + regNewData + 1;
}