Lines Matching defs:explain

4780 ** Changing the explain setting for a prepared statement does not change
4787 ** This routine returns SQLITE_OK if the explain mode is successfully
4788 ** changed, or an error code if the explain mode could not be changed.
4789 ** The explain mode cannot be changed while a statement is active.
5948 ** these functions, we will not explain what they do.
19875 u8 explain; /* True if the EXPLAIN flag is found on the query */
23132 ** "explain" P4 display logic is enabled.
23593 bft explain:2; /* 0: normal, 1: EXPLAIN, 2: EXPLAIN QUERY PLAN */
85361 if( pParse->explain==2 || IS_STMT_SCANSTATUS(pParse->db) )
87209 ** When p->explain==1, each instruction is listed. When
87210 ** p->explain==2, only OP_Explain instructions are listed and these
87211 ** are shown in a different format. p->explain==2 is used to implement
87213 ** 2018-04-24: In p->explain==2 mode, the OP_Init opcodes of triggers
87217 ** When p->explain==1, first the main program is listed, then each of
87228 int bListSubprogs = (p->explain==1 || (db->flags & SQLITE_TriggerEQP)!=0);
87232 assert( p->explain );
87261 rc = sqlite3VdbeNextOpcode(p, pSub, p->explain==2, &p->pc, &i, &aOp);
87271 if( p->explain==2 ){
87508 if( pParse->explain ){
87510 p->explain = pParse->explain;
87511 p->nResColumn = 12 - 4*p->explain;
91216 if( p->explain ){
91866 if( p->explain ){
91868 n = p->explain==1 ? 8 : 4;
91871 int i = iExplainColNames16[N + 8*p->explain - 8];
91874 ret = (void*)azExplainColNames8[N + 8*p->explain - 8];
92357 return pStmt ? ((Vdbe*)pStmt)->explain : 0;
92361 ** Set the explain mode for a statement.
92370 if( ((int)v->explain)==eMode ){
92380 v->explain = eMode;
92383 v->explain = eMode;
92387 if( v->explain ){
92388 v->nResColumn = 12 - 4*v->explain;
93971 assert( p->explain==0 );
102123 ** The magic Explain opcode are only inserted when explain==2 (which
107978 && pParse->explain==0
113935 if( pDef==0 && pParse->explain ){
126579 if( db->aDb[1].pBt==0 && !pParse->explain ){
142512 sParse.explain = sqlite3_stmt_isexplain((sqlite3_stmt*)pReprepare);
149856 ** Add a single OP_Explain instruction to the VDBE to explain a simple
149865 if( pParse->explain==2 ){
157540 if( sqlite3ParseToplevel(pParse)->explain==2 || IS_STMT_SCANSTATUS(pParse->db) )
163009 Index *pIdx, /* Automatic index to explain */
163013 if( IS_STMT_SCANSTATUS(pParse->db) && pParse->explain!=2 ){
174181 /* 190 */ "explain",
174320 /* 0 */ "explain ::= EXPLAIN",
174321 /* 1 */ "explain ::= EXPLAIN QUERY PLAN",
174669 /* 349 */ "ecmd ::= explain cmdx SEMI",
175245 190, /* (0) explain ::= EXPLAIN */
175246 190, /* (1) explain ::= EXPLAIN QUERY PLAN */
175594 188, /* (349) ecmd ::= explain cmdx SEMI */
175659 -1, /* (0) explain ::= EXPLAIN */
175660 -3, /* (1) explain ::= EXPLAIN QUERY PLAN */
176008 -3, /* (349) ecmd ::= explain cmdx SEMI */
176109 case 0: /* explain ::= EXPLAIN */
176110 { if( pParse->pReprepare==0 ) pParse->explain = 1; }
176112 case 1: /* explain ::= EXPLAIN QUERY PLAN */
176113 { if( pParse->pReprepare==0 ) pParse->explain = 2; }
177595 /* (349) ecmd ::= explain cmdx SEMI (NEVER REDUCES) */ assert(yyruleno!=349);
179459 ** (3) tkEXPLAIN The "explain" keyword.
179602 if( nId==7 && sqlite3StrNICmp(zSql, "explain", 7)==0 ){