--- a/contentstorage/castorage/src/casqlitestorage.cpp Mon May 24 20:50:46 2010 +0300
+++ b/contentstorage/castorage/src/casqlitestorage.cpp Fri May 28 16:17:03 2010 +0300
@@ -214,8 +214,17 @@
void CCaSqLiteStorage::LocalizeEntryL( CCaLocalizationEntry& aLocalization )
{
CCaSqlQuery* sqlLocalizeEntryQuery = CCaSqlQuery::NewLC( iSqlDb );
- CaSqlQueryCreator::CreateLocalizationTableQueryL(sqlLocalizeEntryQuery,
- KSQLLocalizeEntry);
+ if( aLocalization.GetAttributeName().Compare( KColumnEnText ) == 0 )
+ {
+ CaSqlQueryCreator::CreateLocalizationTableQueryL( sqlLocalizeEntryQuery,
+ KSQLLocalizeTextEntry );
+ }
+ else if ( aLocalization.GetAttributeName().Compare(
+ KColumnEnDescription ) == 0 )
+ {
+ CaSqlQueryCreator::CreateLocalizationTableQueryL( sqlLocalizeEntryQuery,
+ KSQLLocalizeDescriptionEntry );
+ }
sqlLocalizeEntryQuery->PrepareL();
sqlLocalizeEntryQuery->BindValuesForLocalizeL( aLocalization );
sqlLocalizeEntryQuery->ExecuteL( );