Fossil

Diff
Login

Differences From Artifact [c00220cd]:

To Artifact [38f627b0]:


  1349   1349               fprintf(pArg->out,"%s\n", sqlite3_column_text(pExplain, 3));
  1350   1350             }
  1351   1351           }
  1352   1352           sqlite3_finalize(pExplain);
  1353   1353           sqlite3_free(zEQP);
  1354   1354         }
  1355   1355   
  1356         -      /* Output TESTCTRL_EXPLAIN text of requested */
  1357         -      if( pArg && pArg->mode==MODE_Explain ){
  1358         -        const char *zExplain = 0;
  1359         -        sqlite3_test_control(SQLITE_TESTCTRL_EXPLAIN_STMT, pStmt, &zExplain);
  1360         -        if( zExplain && zExplain[0] ){
  1361         -          fprintf(pArg->out, "%s", zExplain);
  1362         -        }
  1363         -      }
  1364         -
  1365   1356         /* If the shell is currently in ".explain" mode, gather the extra
  1366   1357         ** data required to add indents to the output.*/
  1367   1358         if( pArg && pArg->mode==MODE_Explain ){
  1368   1359           explain_data_prepare(pArg, pStmt);
  1369   1360         }
  1370   1361   
  1371   1362         /* perform the first step.  this will tell us if we
................................................................................
  3096   3087       }else if( rc != SQLITE_OK ){
  3097   3088         fprintf(stderr,"Error: querying schema information\n");
  3098   3089         rc = 1;
  3099   3090       }else{
  3100   3091         rc = 0;
  3101   3092       }
  3102   3093     }else
         3094  +
         3095  +
         3096  +#if defined(SQLITE_DEBUG) && defined(SQLITE_ENABLE_SELECTTRACE)
         3097  +  if( c=='s' && n==11 && strncmp(azArg[0], "selecttrace", n)==0 ){
         3098  +    extern int sqlite3SelectTrace;
         3099  +    sqlite3SelectTrace = nArg>=2 ? booleanValue(azArg[1]) : 0xff;
         3100  +  }else
         3101  +#endif
         3102  +
  3103   3103   
  3104   3104   #ifdef SQLITE_DEBUG
  3105   3105     /* Undocumented commands for internal testing.  Subject to change
  3106   3106     ** without notice. */
  3107   3107     if( c=='s' && n>=10 && strncmp(azArg[0], "selftest-", 9)==0 ){
  3108   3108       if( strncmp(azArg[0]+9, "boolean", n-9)==0 ){
  3109   3109         int i, v;