diff options
Diffstat (limited to 'src/callback.c')
-rw-r--r-- | src/callback.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/callback.c b/src/callback.c index eaff6d0e0..fdee9bc09 100644 --- a/src/callback.c +++ b/src/callback.c @@ -427,7 +427,10 @@ void sqlite3SchemaFree(void *p){ sqlite3HashClear(&temp1); sqlite3HashClear(&pSchema->fkeyHash); pSchema->pSeqTab = 0; - pSchema->flags &= ~DB_SchemaLoaded; + if( pSchema->flags & DB_SchemaLoaded ){ + pSchema->iGeneration++; + pSchema->flags &= ~DB_SchemaLoaded; + } } /* |