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

Add the OP_SqlExec opcode and use it to implement "PRAGMA analyze_as_needed",

invoking ANALYZE subcommands as necessary.  This simplifies the implementation.

FossilOrigin-Name: d386015f5e7ecdd951d70db56b7bbd858be7ad90
This commit is contained in:
drh
2017-02-18 15:58:52 +00:00
parent dfe11bae99
commit 4a54bb5794
6 changed files with 96 additions and 128 deletions

View File

@@ -5518,6 +5518,16 @@ case OP_CreateTable: { /* out2 */
break;
}
/* Opcode: SqlExec * * * P4 *
**
** Run the SQL statement or statements specified in the P4 string.
*/
case OP_SqlExec: {
rc = sqlite3_exec(db, pOp->p4.z, 0, 0, 0);
if( rc ) goto abort_due_to_error;
break;
}
/* Opcode: ParseSchema P1 * * P4 *
**
** Read and parse all entries from the SQLITE_MASTER table of database P1