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

Get ANALYZE working again with -DSQLITE_ENABLE_STAT2 and virtual tables.

FossilOrigin-Name: b7a26427afc43c9bbdf365b775379eb57187bc97
This commit is contained in:
drh
2010-09-28 17:34:46 +00:00
parent 72c5ea3279
commit f39d29c0bd
3 changed files with 20 additions and 10 deletions

View File

@@ -136,8 +136,8 @@ static void analyzeOneTable(
if( v==0 || NEVER(pTab==0) ){
return;
}
if( pTab->pSelect ){
/* Do not gather statistics on views */
if( pTab->tnum==0 ){
/* Do not gather statistics on views or virtual tables */
return;
}
if( memcmp(pTab->zName, "sqlite_", 7)==0 ){