persistentstorage/sqlite3api/OsLayer/os_symbian_mt.cpp
branchRCL_3
changeset 8 fa9941cf3867
parent 0 08ec8eefde2f
child 9 667e88a979d7
--- a/persistentstorage/sqlite3api/OsLayer/os_symbian_mt.cpp	Sat Feb 20 00:33:55 2010 +0200
+++ b/persistentstorage/sqlite3api/OsLayer/os_symbian_mt.cpp	Fri Mar 12 15:51:02 2010 +0200
@@ -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;