mpxplugins/serviceplugins/collectionplugins/mpxsqlitedbplugin/src/mpxdbauxiliary.cpp
branchRCL_3
changeset 56 2cbbefa9af78
parent 0 ff3acec5bc43
child 66 1f1dad4af8f8
equal deleted inserted replaced
53:3de6c4cf6b67 56:2cbbefa9af78
   109 //
   109 //
   110 TTime CMPXDbAuxiliary::LastRefreshedTimeL()
   110 TTime CMPXDbAuxiliary::LastRefreshedTimeL()
   111     {
   111     {
   112     MPX_FUNC("CMPXDbAuxiliary::LastRefreshedTimeL");
   112     MPX_FUNC("CMPXDbAuxiliary::LastRefreshedTimeL");
   113 
   113 
   114     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime));
   114     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime())); 
   115     CleanupClosePushL(recordset);
   115     CleanupClosePushL(recordset);
   116 
   116 
   117     if (recordset.Next() != KSqlAtRow)
   117     if (recordset.Next() != KSqlAtRow)
   118         {
   118         {
   119         User::Leave(KErrCorrupt);
   119         User::Leave(KErrCorrupt);
   193     {
   193     {
   194     MPX_FUNC("CMPXDbAuxiliary::IsRefreshedL");
   194     MPX_FUNC("CMPXDbAuxiliary::IsRefreshedL");
   195 
   195 
   196     TBool refreshed(ETrue);
   196     TBool refreshed(ETrue);
   197 
   197 
   198     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime));
   198     RSqlStatement recordset(iDbManager.ExecuteSelectQueryL(KQueryAuxiliaryGetTime())); 
   199     CleanupClosePushL(recordset);
   199     CleanupClosePushL(recordset);
   200 
   200 
   201     TInt count(0);
   201     TInt count(0);
   202     while (recordset.Next() == KSqlAtRow)
   202     while (recordset.Next() == KSqlAtRow)
   203         {
   203         {