metadataengine/server/src/mdsobjectdef.cpp
branchRCL_3
changeset 14 646a02f170b9
parent 0 c53acadfccc6
equal deleted inserted replaced
8:6752808b2036 14:646a02f170b9
   241 	if ( !GetStoredInDB() )
   241 	if ( !GetStoredInDB() )
   242 		{
   242 		{
   243 		rowData.AppendL( TColumn( aNamespaceDefId ) );
   243 		rowData.AppendL( TColumn( aNamespaceDefId ) );
   244 		rowData.AppendL( TColumn( iParent ? iParent->GetId() : KNoDefId ) );
   244 		rowData.AppendL( TColumn( iParent ? iParent->GetId() : KNoDefId ) );
   245 		rowData.AppendL( TColumn( (TInt32)iFlags ) );
   245 		rowData.AppendL( TColumn( (TInt32)iFlags ) );
   246 		rowData.AppendL( TColumn( GetName().AllocL() ) );
   246 		rowData.AppendL( TColumn( GetName().AllocLC() ) );
       
   247 		CleanupStack::Pop(); // name
   247 
   248 
   248 		TDefId id = MMdSIndexer::ExecuteAndGetIndexL( KMdsSqlClauseAddObjectDef,rowData );
   249 		TDefId id = MMdSIndexer::ExecuteAndGetIndexL( KMdsSqlClauseAddObjectDef,rowData );
   249 
   250 
   250 	    SetId( id );
   251 	    SetId( id );
   251        	SetStoredInDB();
   252        	SetStoredInDB();