engine/src/ShowEngine.cpp
branchsymbian1
changeset 149 70b2f592a460
parent 148 e3f9b65d6910
child 164 000f9fc147b2
equal deleted inserted replaced
148:e3f9b65d6910 149:70b2f592a460
  1043 	}
  1043 	}
  1044 
  1044 
  1045 void CShowEngine::DBSwapDownloadsL(TDownload aFirstDL, TDownload aSecondDL)
  1045 void CShowEngine::DBSwapDownloadsL(TDownload aFirstDL, TDownload aSecondDL)
  1046 	{
  1046 	{
  1047 	DP("CShowEngine::DBSwapDownloadsL");
  1047 	DP("CShowEngine::DBSwapDownloadsL");
  1048 	_LIT(KSqlStatement, "update downloads set uid=%d where dl_index=%d");
  1048 	_LIT(KSqlStatement, "update downloads set uid=%u where dl_index=%d");
  1049 	
  1049 	
  1050 	iSqlBuffer.Format(KSqlStatement, aFirstDL.iUid, aSecondDL.iIndex);
  1050 	iSqlBuffer.Format(KSqlStatement, aFirstDL.iUid, aSecondDL.iIndex);
  1051 	sqlite3_stmt *st;
  1051 	sqlite3_stmt *st;
  1052 	int rc = sqlite3_prepare16_v2(&iDB, (const void*) iSqlBuffer.PtrZ(), -1,
  1052 	int rc = sqlite3_prepare16_v2(&iDB, (const void*) iSqlBuffer.PtrZ(), -1,
  1053 			&st, (const void**) NULL);
  1053 			&st, (const void**) NULL);