mirror of
				https://github.com/sqlite/sqlite.git
				synced 2025-11-03 16:53:36 +03:00 
			
		
		
		
	Enable query planner tracing using the new (and undocumented) ".wheretrace 1"
command in the command-line shell if both the shell and the core are compiled with SQLITE_DEBUG and SQLITE_ENABLE_WHERETRACE. This is not a supported API. Use for testing and debugging only. FossilOrigin-Name: 1be4b16b9e900181ae6848f2920ea646f407c9dc
This commit is contained in:
		@@ -2513,6 +2513,13 @@ static int do_meta_command(char *zLine, struct callback_data *p){
 | 
			
		||||
    }
 | 
			
		||||
  }else
 | 
			
		||||
 | 
			
		||||
#if defined(SQLITE_DEBUG) && defined(SQLITE_ENABLE_WHERETRACE)
 | 
			
		||||
  if( c=='w' && strncmp(azArg[0], "wheretrace", n)==0 ){
 | 
			
		||||
    extern int sqlite3WhereTrace;
 | 
			
		||||
    sqlite3WhereTrace = atoi(azArg[1]);
 | 
			
		||||
  }else
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
  if( c=='w' && strncmp(azArg[0], "width", n)==0 && nArg>1 ){
 | 
			
		||||
    int j;
 | 
			
		||||
    assert( nArg<=ArraySize(azArg) );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user