aboutsummaryrefslogtreecommitdiff
path: root/src/pragma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pragma.c')
-rw-r--r--src/pragma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pragma.c b/src/pragma.c
index 488a1d194..6c27fdc5c 100644
--- a/src/pragma.c
+++ b/src/pragma.c
@@ -1505,6 +1505,7 @@ void sqlite3Pragma(
int iDataCur, iIdxCur;
int r1 = -1;
+ if( pTab->tnum<1 ) continue; /* Skip VIEWs or VIRTUAL TABLEs */
if( pTab->pCheck==0
&& (pTab->tabFlags & TF_HasNotNull)==0
&& (pTab->pIndex==0 || isQuick)