From 1b8bc1ae8b9810eb66ff798093b89d2ce690373f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 14 Oct 2025 23:56:57 +0200 Subject: Fix SQLite GREATEST() (#8118) * Fix SQLite GREATEST() fix https://github.com/FreshRSS/FreshRSS/pull/8105 Related to https://github.com/FreshRSS/FreshRSS/pull/7886 --- app/Models/EntryDAOSQLite.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Models/EntryDAOSQLite.php') diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.php index 8bf0e2209..c272272b0 100644 --- a/app/Models/EntryDAOSQLite.php +++ b/app/Models/EntryDAOSQLite.php @@ -34,6 +34,11 @@ class FreshRSS_EntryDAOSQLite extends FreshRSS_EntryDAO { return '-1'; } + #[\Override] + public static function sqlGreatest(string $a, string $b): string { + return 'MAX(' . $a . ', ' . $b . ')'; + } + #[\Override] public static function sqlRandom(): string { return 'RANDOM()'; -- cgit v1.2.3