Bug 1306609 - BrowserProvider.getHighlights(): Reorder columns. r=ahunt

The UNION operator requires the two result sets to have the columns in the same order.

MozReview-Commit-ID: JRtw0LDZ5ib

--HG--
extra : rebase_source : a2cc6b2a9190cf9fb8ec75351446e0a91e613710
This commit is contained in:
Sebastian Kaspari 2016-10-05 13:46:31 +02:00
parent f5638f7d34
commit 26e0697196

View File

@ -1199,8 +1199,8 @@ public class BrowserProvider extends SharedBrowserDatabaseProvider {
// Select recent bookmarks that have not been visited much
final String bookmarksQuery = "SELECT * FROM (SELECT " +
DBUtils.qualifyColumn(Bookmarks.TABLE_NAME, Bookmarks._ID) + " AS " + Combined.BOOKMARK_ID + ", " +
"-1 AS " + Combined.HISTORY_ID + ", " +
DBUtils.qualifyColumn(Bookmarks.TABLE_NAME, Bookmarks._ID) + " AS " + Combined.BOOKMARK_ID + ", " +
DBUtils.qualifyColumn(Bookmarks.TABLE_NAME, Bookmarks.URL) + ", " +
DBUtils.qualifyColumn(Bookmarks.TABLE_NAME, Bookmarks.TITLE) + ", " +
DBUtils.qualifyColumn(Bookmarks.TABLE_NAME, Bookmarks.DATE_CREATED) + " AS " + Highlights.DATE + " " +