mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
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:
parent
f5638f7d34
commit
26e0697196
@ -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 + " " +
|
||||
|
Loading…
Reference in New Issue
Block a user