aboutsummaryrefslogtreecommitdiff
path: root/src/vtab.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-08-22 18:00:11 +0000
committerdrh <drh@noemail.net>2014-08-22 18:00:11 +0000
commit13f40da31d9692a96dcab00f85afee9fd68bae12 (patch)
treefe00c67d606c5ffe0912c51f4608f3d7628586fc /src/vtab.c
parent172087fb733f54d025fe6a112898cdcabada7e47 (diff)
downloadsqlite-13f40da31d9692a96dcab00f85afee9fd68bae12.tar.gz
sqlite-13f40da31d9692a96dcab00f85afee9fd68bae12.zip
Split the sqlite3Error() routine into sqlite3Error() and
sqlite3ErrorWithMsg(), for a slight size reduction and performance increase. FossilOrigin-Name: cf561d1f0bb60b3d638632d20bd686dda4fa4a04
Diffstat (limited to 'src/vtab.c')
-rw-r--r--src/vtab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vtab.c b/src/vtab.c
index ad18af48a..c7a8a5a33 100644
--- a/src/vtab.c
+++ b/src/vtab.c
@@ -699,7 +699,7 @@ int sqlite3_declare_vtab(sqlite3 *db, const char *zCreateTable){
sqlite3_mutex_enter(db->mutex);
if( !db->pVtabCtx || !(pTab = db->pVtabCtx->pTab) ){
- sqlite3Error(db, SQLITE_MISUSE, 0);
+ sqlite3Error(db, SQLITE_MISUSE);
sqlite3_mutex_leave(db->mutex);
return SQLITE_MISUSE_BKPT;
}
@@ -727,7 +727,7 @@ int sqlite3_declare_vtab(sqlite3 *db, const char *zCreateTable){
}
db->pVtabCtx->pTab = 0;
}else{
- sqlite3Error(db, SQLITE_ERROR, (zErr ? "%s" : 0), zErr);
+ sqlite3ErrorWithMsg(db, SQLITE_ERROR, (zErr ? "%s" : 0), zErr);
sqlite3DbFree(db, zErr);
rc = SQLITE_ERROR;
}
@@ -1088,7 +1088,7 @@ int sqlite3_vtab_config(sqlite3 *db, int op, ...){
}
va_end(ap);
- if( rc!=SQLITE_OK ) sqlite3Error(db, rc, 0);
+ if( rc!=SQLITE_OK ) sqlite3Error(db, rc);
sqlite3_mutex_leave(db->mutex);
return rc;
}