--- a/contentstorage/castorage/src/casqlquerycreator.cpp Fri Jun 11 16:13:51 2010 +0300
+++ b/contentstorage/castorage/src/casqlquerycreator.cpp Thu Jun 24 16:18:29 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() );