aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2009-10-19 18:11:09 +0000
committerdan <dan@noemail.net>2009-10-19 18:11:09 +0000
commit1d2ce4f80422b0d8720817b057f834102e1738e3 (patch)
tree0242dfefd86f20e21877d9d9d037c5a3140cb0b6 /src/tclsqlite.c
parentf7b0b0ad5fb083c194f0f69e75747dccf71427ed (diff)
downloadsqlite-1d2ce4f80422b0d8720817b057f834102e1738e3.tar.gz
sqlite-1d2ce4f80422b0d8720817b057f834102e1738e3.zip
Remove the sqlite3_reoptimize() API. The same functionality is now provided automatically to queries prepared using prepare_v2().
FossilOrigin-Name: 2c50b3d5aab7cd8cc841d61f8c3b2b34d2f0b54b
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 3e7a513e7..76e0ee09f 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -1129,15 +1129,6 @@ static int dbPrepareAndBind(
pPreStmt->nParm = iParm;
*ppPreStmt = pPreStmt;
- /* Call sqlite3_reoptimize() to optimize the statement according to
- ** the values just bound to it. If SQLITE_ENABLE_STAT2 is not defined
- ** or the statement will not benefit from re-optimization, this
- ** call is a no-op. */
- if( SQLITE_OK!=sqlite3_reoptimize(pPreStmt->pStmt) ){
- Tcl_SetObjResult(interp, dbTextToObj(sqlite3_errmsg(pDb->db)));
- return TCL_ERROR;
- }
-
return TCL_OK;
}