mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Use the IsOrdinaryTable() macro, not a test of tnum, to distinguish tables
from views and virtual tables. FossilOrigin-Name: 6189b7809d774bf697d14e27a4bd961df5c318d261dce97db7801ce83f12c59a
This commit is contained in:
@@ -996,7 +996,7 @@ static void analyzeOneTable(
|
||||
if( v==0 || NEVER(pTab==0) ){
|
||||
return;
|
||||
}
|
||||
if( pTab->tnum==0 ){
|
||||
if( !IsOrdinaryTable(pTab) ){
|
||||
/* Do not gather statistics on views or virtual tables */
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user