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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user