1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Do a single OP_Expire at the very end of "PRAGMA optimize", and omit the

OP_Expire on ANALYZE commands invoked by the pragma.

FossilOrigin-Name: 188300a337c87b7ee0dd1f4b9a4f1bd80e70cca4
This commit is contained in:
drh
2017-02-23 00:58:36 +00:00
parent 2ead47cb49
commit bce0414844
6 changed files with 23 additions and 31 deletions

View File

@@ -5523,7 +5523,9 @@ case OP_CreateTable: { /* out2 */
** Run the SQL statement or statements specified in the P4 string.
*/
case OP_SqlExec: {
db->nSqlExec++;
rc = sqlite3_exec(db, pOp->p4.z, 0, 0, 0);
db->nSqlExec--;
if( rc ) goto abort_due_to_error;
break;
}