emailservices/emailstore/message_store/server/src/ContainerStoreContainersTable.cpp
changeset 76 38bf5461e270
parent 68 83cc6bae1de8
equal deleted inserted replaced
74:6c59112cfd31 76:38bf5461e270
   225 TContainerId CContainerStoreContainersTable::FindL( const TDesC& aSqlQuery )
   225 TContainerId CContainerStoreContainersTable::FindL( const TDesC& aSqlQuery )
   226 	{
   226 	{
   227 	__LOG_ENTER_SUPPRESS( "FindL" )
   227 	__LOG_ENTER_SUPPRESS( "FindL" )
   228 	__LOG_WRITE_FORMAT1_DEBUG3( "query=%S", &aSqlQuery )
   228 	__LOG_WRITE_FORMAT1_DEBUG3( "query=%S", &aSqlQuery )
   229 	
   229 	
   230 	TContainerId returnValue;
   230 	TContainerId returnValue = KContainerInvalidId;
   231 	
   231 	
   232 	iTable.FirstL();
   232 	if(iTable.FirstL()){
   233 	
   233         if( iTable.FindL( RDbRowSet::EForwards, aSqlQuery ) == KErrNotFound )
   234 	if( iTable.FindL( RDbRowSet::EForwards, aSqlQuery ) == KErrNotFound )
   234             {
   235 	    {
   235             __LOG_WRITE_INFO( "No match found" )
   236 	    __LOG_WRITE_INFO( "No match found" )
   236             returnValue = KContainerInvalidId;
   237 	    returnValue = KContainerInvalidId;
   237             }
   238 	    }
   238         else 
   239 	else 
   239             {
   240 	    {
   240             iTable.GetL();
   241 	    iTable.GetL();
   241             returnValue = iTable.ColUint32( iIdColNum );
   242 	    returnValue = iTable.ColUint32( iIdColNum );
   242             } // end if
   243 	    } // end if
   243 	}
   244 	
   244 	
   245 	return returnValue;	
   245 	return returnValue;	
   246 	
   246 	
   247 	} // end FindL
   247 	} // end FindL
   248 
   248