Select date for all history queries, even filtered
Deleting requires a date to work.
This commit is contained in:
parent
cb5bdb8646
commit
765cdfeb27
1 changed files with 2 additions and 2 deletions
|
@ -212,11 +212,11 @@ midori_history_read_from_db (MidoriHistory* history,
|
||||||
gchar* filterstr;
|
gchar* filterstr;
|
||||||
|
|
||||||
sqlcmd = "SELECT * FROM ("
|
sqlcmd = "SELECT * FROM ("
|
||||||
" SELECT uri, title, day FROM history"
|
" SELECT uri, title, day, date FROM history"
|
||||||
" WHERE uri LIKE ?1 OR title LIKE ?1 GROUP BY uri "
|
" WHERE uri LIKE ?1 OR title LIKE ?1 GROUP BY uri "
|
||||||
"UNION ALL "
|
"UNION ALL "
|
||||||
" SELECT replace (uri, '%s', keywords) AS uri, "
|
" SELECT replace (uri, '%s', keywords) AS uri, "
|
||||||
" keywords AS title, day FROM search "
|
" keywords AS title, day, 0 AS date FROM search "
|
||||||
" WHERE uri LIKE ?1 OR keywords LIKE ?1 GROUP BY uri "
|
" WHERE uri LIKE ?1 OR keywords LIKE ?1 GROUP BY uri "
|
||||||
") ORDER BY day ASC";
|
") ORDER BY day ASC";
|
||||||
result = sqlite3_prepare_v2 (db, sqlcmd, -1, &statement, NULL);
|
result = sqlite3_prepare_v2 (db, sqlcmd, -1, &statement, NULL);
|
||||||
|
|
Loading…
Reference in a new issue