aboutsummaryrefslogtreecommitdiff
path: root/src/alter.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-06-03 20:11:17 +0000
committerdrh <drh@noemail.net>2011-06-03 20:11:17 +0000
commit5d9c9da6e847e7111fc93c592576edaff5ad8cdf (patch)
tree514f181119aab4e443cf92f438851c98ac627366 /src/alter.c
parent68f2a57698780de49312cdb0f11732c521955d60 (diff)
downloadsqlite-5d9c9da6e847e7111fc93c592576edaff5ad8cdf.tar.gz
sqlite-5d9c9da6e847e7111fc93c592576edaff5ad8cdf.zip
Create and use a function especially for adding the ParseSchema opcode.
This gives a small reduction in code and a small performance increase. FossilOrigin-Name: 957b2ab67c6185f0e1062593d237de5c434a38bf
Diffstat (limited to 'src/alter.c')
-rw-r--r--src/alter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alter.c b/src/alter.c
index aa3fa929f..fb6d89de6 100644
--- a/src/alter.c
+++ b/src/alter.c
@@ -358,14 +358,14 @@ static void reloadTableSchema(Parse *pParse, Table *pTab, const char *zName){
/* Reload the table, index and permanent trigger schemas. */
zWhere = sqlite3MPrintf(pParse->db, "tbl_name=%Q", zName);
if( !zWhere ) return;
- sqlite3VdbeAddOp4(v, OP_ParseSchema, iDb, 0, 0, zWhere, P4_DYNAMIC);
+ sqlite3VdbeAddParseSchemaOp(v, iDb, zWhere);
#ifndef SQLITE_OMIT_TRIGGER
/* Now, if the table is not stored in the temp database, reload any temp
** triggers. Don't use IN(...) in case SQLITE_OMIT_SUBQUERY is defined.
*/
if( (zWhere=whereTempTriggers(pParse, pTab))!=0 ){
- sqlite3VdbeAddOp4(v, OP_ParseSchema, 1, 0, 0, zWhere, P4_DYNAMIC);
+ sqlite3VdbeAddParseSchemaOp(v, 1, zWhere);
}
#endif
}