aboutsummaryrefslogtreecommitdiff
path: root/src/build.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-09-02 18:40:33 +0000
committerdrh <drh@noemail.net>2015-09-02 18:40:33 +0000
commit0ff287fb0137268f9f7658cf17b44bb6937f1d0c (patch)
tree5de50541bc950fe519d3621de1df3a5e9932923c /src/build.c
parent2991ba050b66f789dd8368987d265d8a8ff5aa88 (diff)
downloadsqlite-0ff287fb0137268f9f7658cf17b44bb6937f1d0c.tar.gz
sqlite-0ff287fb0137268f9f7658cf17b44bb6937f1d0c.zip
Add and use the sqlite3VdbeChangeOpcode() routine. Simplify the implementation
of the other sqlite3VdbeChange*() routines. FossilOrigin-Name: 0a5b00e493efae58252f9fc7bde5a469645942d5
Diffstat (limited to 'src/build.c')
-rw-r--r--src/build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build.c b/src/build.c
index 612911364..f4968f5cd 100644
--- a/src/build.c
+++ b/src/build.c
@@ -1690,7 +1690,7 @@ static void convertToWithoutRowidTable(Parse *pParse, Table *pTab){
*/
if( pParse->addrCrTab ){
assert( v );
- sqlite3VdbeGetOp(v, pParse->addrCrTab)->opcode = OP_CreateIndex;
+ sqlite3VdbeChangeOpcode(v, pParse->addrCrTab, OP_CreateIndex);
}
/* Locate the PRIMARY KEY index. Or, if this table was originally
@@ -1719,7 +1719,7 @@ static void convertToWithoutRowidTable(Parse *pParse, Table *pTab){
** a database schema). */
if( v ){
assert( db->init.busy==0 );
- sqlite3VdbeGetOp(v, pPk->tnum)->opcode = OP_Goto;
+ sqlite3VdbeChangeOpcode(v, pPk->tnum, OP_Goto);
}
/*