mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Remove the sqlite3_reoptimize() API. The same functionality is now provided automatically to queries prepared using prepare_v2().
FossilOrigin-Name: 2c50b3d5aab7cd8cc841d61f8c3b2b34d2f0b54b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user