diff options
author | drh <> | 2023-10-12 20:51:17 +0000 |
---|---|---|
committer | drh <> | 2023-10-12 20:51:17 +0000 |
commit | 5dc4a405c59a2a8fe171efaf3bd25b1013c160c4 (patch) | |
tree | 5ec32f36faa26e7e6ba41c3de7f743f1ab6d0b34 /src | |
parent | 3046039309ff2dc5c3dcd17828020281c5a42954 (diff) | |
download | sqlite-5dc4a405c59a2a8fe171efaf3bd25b1013c160c4.tar.gz sqlite-5dc4a405c59a2a8fe171efaf3bd25b1013c160c4.zip |
Make sure virtual tables have been connected before trying to invoke
the xIntegrity method during PRAGMA integrity_check.
FossilOrigin-Name: 4a4eccb681741917c6771101d4e329f91eae9b035f4d345218e522bb55fff6da
Diffstat (limited to 'src')
-rw-r--r-- | src/pragma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pragma.c b/src/pragma.c index 7c8911b2c..3b6190b2e 100644 --- a/src/pragma.c +++ b/src/pragma.c @@ -1762,6 +1762,7 @@ void sqlite3Pragma( sqlite3_vtab *pVTab; int a1; if( !IsVirtual(pTab) ) continue; + sqlite3ViewGetColumnNames(pParse, pTab); if( pTab->u.vtab.p==0 ) continue; pVTab = pTab->u.vtab.p->pVtab; if( NEVER(pVTab==0) ) continue; |