equal
deleted
inserted
replaced
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); |