Add the OP_IntCopy opcode - an optimized version of OP_SCopy that only works

for integer values.

FossilOrigin-Name: 3a2f73a4924860fde8ee41ad646e7a02d29ad9d5
This commit is contained in:
drh
2015-10-15 18:04:59 +00:00
parent 9eef8c6934
commit fed7ac6f04
4 changed files with 25 additions and 9 deletions
+1 -1
View File
@@ -1422,7 +1422,7 @@ void sqlite3GenerateConstraintChecks(
}else{
x = iField + regNewData + 1;
}
sqlite3VdbeAddOp2(v, OP_SCopy, x, regIdx+i);
sqlite3VdbeAddOp2(v, iField<0 ? OP_IntCopy : OP_SCopy, x, regIdx+i);
VdbeComment((v, "%s", iField<0 ? "rowid" : pTab->aCol[iField].zName));
}
}