1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

On a DETACH statement, keep all schemas intact except fo the one that is

being detached, and thus avoid unnecessary schema reparsing.

FossilOrigin-Name: 661db19b34566642dd44ee4cff4ebc093cb8a552
This commit is contained in:
drh
2015-04-13 22:26:55 +00:00
parent f56fa4676e
commit 2647dfa292
3 changed files with 8 additions and 8 deletions

View File

@@ -298,7 +298,7 @@ static void detachFunc(
sqlite3BtreeClose(pDb->pBt);
pDb->pBt = 0;
pDb->pSchema = 0;
sqlite3ResetAllSchemasOfConnection(db);
sqlite3CollapseDatabaseArray(db);
return;
detach_error: