diff options
author | drh <drh@noemail.net> | 2020-07-04 20:29:56 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-07-04 20:29:56 +0000 |
commit | a78d2c052837f9eac464c175a8924fbe173f7643 (patch) | |
tree | 3d9255f13912c2b5cc0a2d3d3bf2f64759293a11 /src | |
parent | a4e42d24df0f34afd769e8fe5466f7a9ebcdfe50 (diff) | |
download | sqlite-a78d2c052837f9eac464c175a8924fbe173f7643.tar.gz sqlite-a78d2c052837f9eac464c175a8924fbe173f7643.zip |
Fix the table_info pragma so that it always checks the schema version and
reprepares, even if it is a no-op.
FossilOrigin-Name: 6da77973abc325ae8baf64615267a614a0b8bb8dfd0a01a9f7d6c3a8f359564f
Diffstat (limited to 'src')
-rw-r--r-- | src/pragma.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pragma.c b/src/pragma.c index 5d1050fff..fa4ef748c 100644 --- a/src/pragma.c +++ b/src/pragma.c @@ -1138,15 +1138,14 @@ void sqlite3Pragma( */ case PragTyp_TABLE_INFO: if( zRight ){ Table *pTab; + sqlite3CodeVerifyNamedSchema(pParse, zDb); pTab = sqlite3LocateTable(pParse, LOCATE_NOERR, zRight, zDb); if( pTab ){ - int iTabDb = sqlite3SchemaToIndex(db, pTab->pSchema); int i, k; int nHidden = 0; Column *pCol; Index *pPk = sqlite3PrimaryKeyIndex(pTab); pParse->nMem = 7; - sqlite3CodeVerifySchema(pParse, iTabDb); sqlite3ViewGetColumnNames(pParse, pTab); for(i=0, pCol=pTab->aCol; i<pTab->nCol; i++, pCol++){ int isHidden = 0; |