Explorar o código

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 hai 3 meses
pai
achega
148c140843
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 		}
 
-		[$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);
 		if ($stm === false || !$stm->execute(array_merge($values, $searchValues))) {