--- a/contentstorage/castorage/src/casqlquerycreator.cpp Wed Jun 23 18:33:40 2010 +0300
+++ b/contentstorage/castorage/src/casqlquerycreator.cpp Tue Jul 06 14:37:10 2010 +0300
@@ -818,6 +818,20 @@
query.Append( getListByParentId2withWhere );
CleanupStack::PopAndDestroy( &getListByParentId2withWhere );
}
+ else if ( aQuery->GetChildId() > 0 )
+ {
+ RBuf getListByCildIdwithWhere;
+ getListByCildIdwithWhere.CleanupClosePushL();
+ getListByCildIdwithWhere.CreateL( KSQLGetListByChildId().Length() + whereStatement.Length() );
+ getListByCildIdwithWhere.AppendFormat( KSQLGetListByChildId, &whereStatement );
+
+ query.ReAllocL( KSQLGetListByParentId1().Length() + leftJoins.Length() +
+ getListByCildIdwithWhere.Length() );
+ query.Append( KSQLGetListByParentId1 );
+ query.Append( leftJoins );
+ query.Append( getListByCildIdwithWhere );
+ CleanupStack::PopAndDestroy( &getListByCildIdwithWhere );
+ }
else
{
query.CreateL( KSQLGetList1().Length() );