diff options
| author | 2025-10-14 23:56:57 +0200 | |
|---|---|---|
| committer | 2025-10-14 23:56:57 +0200 | |
| commit | 1b8bc1ae8b9810eb66ff798093b89d2ce690373f (patch) | |
| tree | 65ed76fa2ab80fbf9573e7a48909fc565eed8725 /app/Models/EntryDAOSQLite.php | |
| parent | b7bd18148e65bbdd6be442036a295eb43ca1501e (diff) | |
Fix SQLite GREATEST() (#8118)
* Fix SQLite GREATEST()
fix https://github.com/FreshRSS/FreshRSS/pull/8105
Related to https://github.com/FreshRSS/FreshRSS/pull/7886
Diffstat (limited to 'app/Models/EntryDAOSQLite.php')
| -rw-r--r-- | app/Models/EntryDAOSQLite.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -35,6 +35,11 @@ class FreshRSS_EntryDAOSQLite extends FreshRSS_EntryDAO { } #[\Override] + public static function sqlGreatest(string $a, string $b): string { + return 'MAX(' . $a . ', ' . $b . ')'; + } + + #[\Override] public static function sqlRandom(): string { return 'RANDOM()'; } |
