aboutsummaryrefslogtreecommitdiff
path: root/src/build.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-04-04 13:40:53 +0000
committerdrh <drh@noemail.net>2011-04-04 13:40:53 +0000
commitb6ee66072ea24b06d91bedc74b64c2f795b3b9e5 (patch)
tree3e95bae5f7a6c273defc61d38aff9a12aecaefc1 /src/build.c
parente038f852c8253ef8c72b3bce7f901efa1c9369cb (diff)
downloadsqlite-b6ee66072ea24b06d91bedc74b64c2f795b3b9e5.tar.gz
sqlite-b6ee66072ea24b06d91bedc74b64c2f795b3b9e5.zip
Rename sqlite3SchemaFree() to sqlite3SchemaClear() to more accurately reflect
its function. FossilOrigin-Name: 71d7440023f67760d0bff4bd7459fe88bd226f30
Diffstat (limited to 'src/build.c')
-rw-r--r--src/build.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/build.c b/src/build.c
index 39b6e84a7..41e7c799c 100644
--- a/src/build.c
+++ b/src/build.c
@@ -406,14 +406,14 @@ void sqlite3ResetInternalSchema(sqlite3 *db, int iDb){
Db *pDb = &db->aDb[iDb];
if( pDb->pSchema ){
assert(iDb==1 || (pDb->pBt && sqlite3BtreeHoldsMutex(pDb->pBt)));
- sqlite3SchemaFree(pDb->pSchema);
+ sqlite3SchemaClear(pDb->pSchema);
}
/* If any database other than TEMP is reset, then also reset TEMP
** since TEMP might be holding triggers that reference tables in the
** other database.
*/
if( iDb!=1 && (pDb = &db->aDb[1])!=0 && pDb->pSchema ){
- sqlite3SchemaFree(pDb->pSchema);
+ sqlite3SchemaClear(pDb->pSchema);
}
return;
}
@@ -425,7 +425,7 @@ void sqlite3ResetInternalSchema(sqlite3 *db, int iDb){
Db *pDb = &db->aDb[i];
if( pDb->pSchema ){
assert(i==1 || (pDb->pBt && sqlite3BtreeHoldsMutex(pDb->pBt)));
- sqlite3SchemaFree(pDb->pSchema);
+ sqlite3SchemaClear(pDb->pSchema);
}
}
db->flags &= ~SQLITE_InternChanges;