1
0
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:
drh
2021-10-11 15:21:42 +00:00
parent 75231eae07
commit 9966621da1
4 changed files with 10 additions and 10 deletions

View File

@@ -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;
}