Ver Fonte

Fix marking filtered label articles as read in SQLite and PostgreSQL (#9264)

* Fix marking filtered label articles as read in SQLite

Remove the undefined entry alias from SQLite markReadTag filters. Add SQLite regression coverage for search and state filters, label boundaries, the maximum entry ID, and unread cache updates.

Fixes #9214

* Test label read filters across supported databases

Run the entry DAO regression cases against configurable SQLite, PostgreSQL, MySQL, or MariaDB connections using temporary tables. Match compressed content storage on MySQL/MariaDB, cover marking articles unread, and document how to run each backend.

* Keep only fix
Will rework test approach in future work

---------

Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Song Zhifei há 7 horas atrás
pai
commit
148c140843
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Models/EntryDAOSQLite.php

+ 1 - 1
app/Models/EntryDAOSQLite.php

@@ -195,7 +195,7 @@ class FreshRSS_EntryDAOSQLite extends FreshRSS_EntryDAO {
 			$values[] = $id;
 			$values[] = $id;
 		}
 		}
 
 
-		[$searchValues, $search] = $this->sqlListEntriesWhere(alias: 'e.', state: $state, filters: $filters);
+		[$searchValues, $search] = $this->sqlListEntriesWhere(alias: '', state: $state, filters: $filters);
 
 
 		$stm = $this->pdo->prepare($sql . $search);
 		$stm = $this->pdo->prepare($sql . $search);
 		if ($stm === false || !$stm->execute(array_merge($values, $searchValues))) {
 		if ($stm === false || !$stm->execute(array_merge($values, $searchValues))) {