Bug 812627 - Use the proper db connection when retrieving the last insert ID for downloads. r=mak

This commit is contained in:
Josh Matthews 2012-11-19 15:22:58 +00:00
parent 04326b49a5
commit 44cc635a2c

View File

@ -883,7 +883,7 @@ nsDownloadManager::AddDownloadToDB(const nsAString &aName,
NS_ENSURE_SUCCESS(rv, 0);
int64_t id = 0;
rv = mDBConn->GetLastInsertRowID(&id);
rv = dbConn->GetLastInsertRowID(&id);
NS_ENSURE_SUCCESS(rv, 0);
aNewGUID = guid;