harvesterplugins/media/mediautils/src/cpixmdedbmanager.cpp
changeset 3 6832643895f7
parent 0 ccd0fd43f247
equal deleted inserted replaced
2:208a4ba3894c 3:6832643895f7
   244     CleanupClosePushL(dbView);
   244     CleanupClosePushL(dbView);
   245     TBuf<KMdeCpixSyncDbSqlDeleteSize> sql;
   245     TBuf<KMdeCpixSyncDbSqlDeleteSize> sql;
   246     sql.Format(KMdeCpixSyncDbSqlCheckExist,aObjId);
   246     sql.Format(KMdeCpixSyncDbSqlCheckExist,aObjId);
   247     User::LeaveIfError(dbView.Prepare(iDatabase, TDbQuery(sql)));
   247     User::LeaveIfError(dbView.Prepare(iDatabase, TDbQuery(sql)));
   248     User::LeaveIfError(dbView.EvaluateAll());
   248     User::LeaveIfError(dbView.EvaluateAll());
   249     dbView.FirstL();
   249     (void)dbView.FirstL();
   250     if(dbView.AtRow())
   250     if(dbView.AtRow())
   251         {
   251         {
   252         dbView.UpdateL();
   252         dbView.UpdateL();
   253         dbView.SetColL(EKey,aObjId);
   253         dbView.SetColL(EKey,aObjId);
   254         dbView.SetColL(EDrive, aMdsItem.DriveNumber());
   254         dbView.SetColL(EDrive, aMdsItem.DriveNumber());