persistentstorage/sql/SRC/Server/SqlSrvDatabase.cpp
branchRCL_3
changeset 11 211563e4b919
parent 10 31a8f755b7fe
child 15 fcc16690f446
equal deleted inserted replaced
10:31a8f755b7fe 11:211563e4b919
   923 */
   923 */
   924 void CSqlSrvDatabase::AttachCleanup(void* aCleanup)
   924 void CSqlSrvDatabase::AttachCleanup(void* aCleanup)
   925 	{
   925 	{
   926 	TAttachCleanup* cleanup = reinterpret_cast <TAttachCleanup*> (aCleanup);
   926 	TAttachCleanup* cleanup = reinterpret_cast <TAttachCleanup*> (aCleanup);
   927 	__SQLASSERT(cleanup != NULL, ESqlPanicBadArgument);
   927 	__SQLASSERT(cleanup != NULL, ESqlPanicBadArgument);
   928 	if(cleanup)
   928 	(void)cleanup->iSelf.FinalizeAttachedDb(cleanup->iDbName);
   929 		{
       
   930 		(void)cleanup->iSelf.FinalizeAttachedDb(cleanup->iDbName);
       
   931 		}
       
   932 	}
   929 	}
   933 
   930 
   934 /**
   931 /**
   935 Forms and executes "ATTACH DATABASE" SQL statement.
   932 Forms and executes "ATTACH DATABASE" SQL statement.
   936 If the database is not read-only:
   933 If the database is not read-only:
  1408 */
  1405 */
  1409 void CSqlSrvDatabase::CompactCleanup(void* aCleanup)
  1406 void CSqlSrvDatabase::CompactCleanup(void* aCleanup)
  1410 	{
  1407 	{
  1411 	CSqlSrvDatabase* self = reinterpret_cast <CSqlSrvDatabase*> (aCleanup);
  1408 	CSqlSrvDatabase* self = reinterpret_cast <CSqlSrvDatabase*> (aCleanup);
  1412 	__SQLASSERT(self != NULL, ESqlPanicBadArgument);
  1409 	__SQLASSERT(self != NULL, ESqlPanicBadArgument);
  1413 	if(self)
  1410     self->ReleaseCompactEntry(KMainDb16);
  1414 		{
       
  1415 		self->ReleaseCompactEntry(KMainDb16);
       
  1416 		}
       
  1417 	}
  1411 	}
  1418 
  1412 
  1419 /**
  1413 /**
  1420 Retrieves the database page size.
  1414 Retrieves the database page size.
  1421 If the request is for the main database page size and if the size is not retrieved yet, then the page size value will be 
  1415 If the request is for the main database page size and if the size is not retrieved yet, then the page size value will be