diff -r 15018f1726c7 -r 3eacc0623088 persistentstorage/sqlite3api/OsLayer/os_symbian_mt.cpp --- a/persistentstorage/sqlite3api/OsLayer/os_symbian_mt.cpp Fri Mar 19 10:00:55 2010 +0200 +++ b/persistentstorage/sqlite3api/OsLayer/os_symbian_mt.cpp Fri Apr 16 16:49:27 2010 +0300 @@ -547,8 +547,7 @@ SQLite OS porting layer API. Closes the file referred by aDbFile parameter. -If aDbFile, which is actually a pointer to a TDbFile instance, the iFullName data member is not NULL, -then the file will be deleted. +If aDbFile.iFullName data member is not NULL, then the file will be deleted. @param aDbFile A pointer to a TDbFile instance, than contains the file handle to be closed. @@ -562,7 +561,8 @@ TDbFile& dbFile = ::DbFile(aDbFile); dbFile.iFileBuf.Close(); if(dbFile.iFullName) - { + {//"iFullName" will not be NULL only when TVfs::Open() is called with SQLITE_OPEN_DELETEONCLOSE flag. + //That means - SQlite expects the file to be deleted after the file close operation. (void)TStaticFs::Fs().Delete(*dbFile.iFullName); delete dbFile.iFullName; dbFile.iFullName = NULL;