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/EntryDAOPGSQL.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/EntryDAOPGSQL.php')
| -rw-r--r-- | app/Models/EntryDAOPGSQL.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Models/EntryDAOPGSQL.php b/app/Models/EntryDAOPGSQL.php index 72bdd7f3e..6211b9a6b 100644 --- a/app/Models/EntryDAOPGSQL.php +++ b/app/Models/EntryDAOPGSQL.php @@ -30,6 +30,11 @@ class FreshRSS_EntryDAOPGSQL extends FreshRSS_EntryDAOSQLite { } #[\Override] + public static function sqlGreatest(string $a, string $b): string { + return 'GREATEST(' . $a . ', ' . $b . ')'; + } + + #[\Override] public static function sqlRandom(): string { return 'RANDOM()'; } |
