aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeblob.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-01-31 19:02:15 +0000
committerdrh <drh@noemail.net>2017-01-31 19:02:15 +0000
commitbaf5dec700bfb68a0ceb147ae34474413d13f39f (patch)
tree8953411b4723c1a889b521afd96fa63df7972405 /src/vdbeblob.c
parent0caad09585bd83f287fcb31c968d656c4dbe9fda (diff)
downloadsqlite-baf5dec700bfb68a0ceb147ae34474413d13f39f.tar.gz
sqlite-baf5dec700bfb68a0ceb147ae34474413d13f39f.zip
Simplifications to blobSeekToRow().
FossilOrigin-Name: 495ea824093ff535734c22c3115384c08f855c02
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r--src/vdbeblob.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c
index 810f78860..5692c1c60 100644
--- a/src/vdbeblob.c
+++ b/src/vdbeblob.c
@@ -55,7 +55,6 @@ static int blobSeekToRow(Incrblob *p, sqlite3_int64 iRow, char **pzErr){
int rc; /* Error code */
char *zErr = 0; /* Error message */
Vdbe *v = (Vdbe *)p->pStmt;
- sqlite3 *db = v->db;
/* Set the value of register r[1] in the SQL statement to integer iRow.
** This is done directly as a performance optimization
@@ -69,9 +68,7 @@ static int blobSeekToRow(Incrblob *p, sqlite3_int64 iRow, char **pzErr){
** counter is faster. */
if( v->pc>3 ){
v->pc = 3;
- db->nVdbeExec++;
- rc = sqlite3VdbeExec((Vdbe*)p->pStmt);
- db->nVdbeExec--;
+ rc = sqlite3VdbeExec(v);
}else{
rc = sqlite3_step(p->pStmt);
}