contentstorage/castorage/src/casqlitestorage.cpp
changeset 103 b99b84bcd2d1
parent 83 156f692b1687
child 109 e0aa398e6810
--- a/contentstorage/castorage/src/casqlitestorage.cpp	Fri Jun 11 13:58:37 2010 +0300
+++ b/contentstorage/castorage/src/casqlitestorage.cpp	Wed Jun 23 18:33:40 2010 +0300
@@ -320,7 +320,7 @@
 // ---------------------------------------------------------------------------
 //
 void CCaSqLiteStorage::GetParentsIdsL( const RArray<TInt>& aEntryIdArray,
-        RArray<TInt>& aParentIdArray )
+        RArray<TInt>& aParentIdArray, TBool aCheckParentsParent )
     {
     CCaSqlQuery* sqlGetParentIdsQuery = CCaSqlQuery::NewLC( iSqlDb );
     CaSqlQueryCreator::CreateGetParentsIdsQueryL( aEntryIdArray,
@@ -334,7 +334,7 @@
     TInt parentCount = sqlGetParentIdsQuery->ExecuteL( aParentIdArray,
             CCaSqlQuery::EGroupTable );
     CleanupStack::PopAndDestroy( sqlGetParentIdsQuery );
-    if( parentCount > 0 )
+    if( aCheckParentsParent && parentCount > 0 )
         {
         GetParentsIdsL( aParentIdArray, aParentIdArray );
         }
@@ -910,3 +910,4 @@
         }
     }
 
+