1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

Change the sqlite_stat2 schema to be more flexible.

FossilOrigin-Name: ded9dec6459baf21e01f63250db5ace57f390e7a
This commit is contained in:
dan
2009-08-18 16:24:58 +00:00
parent 02fa469619
commit e275dc3fb8
8 changed files with 438 additions and 197 deletions

View File

@@ -343,6 +343,15 @@ Index *sqlite3FindIndex(sqlite3 *db, const char *zName, const char *zDb){
static void freeIndex(Index *p){
sqlite3 *db = p->pTable->dbMem;
/* testcase( db==0 ); */
if( p->aSample ){
int i;
for(i=0; i<SQLITE_INDEX_SAMPLES; i++){
int e = p->aSample[i].eType;
if( e==SQLITE_BLOB || e==SQLITE_TEXT ){
sqlite3DbFree(db, p->aSample[i].u.z);
}
}
}
sqlite3DbFree(db, p->aSample);
sqlite3DbFree(db, p->zColAff);
sqlite3DbFree(db, p);