diff options
| author | 2025-01-10 08:47:52 +0100 | |
|---|---|---|
| committer | 2025-01-10 08:47:52 +0100 | |
| commit | 7a79717e102447f72f592fd48aa5d793bcdbf1c6 (patch) | |
| tree | cf5811933b865be6fae36acfb5e225659cc3fce7 /app/Models/DatabaseDAOPGSQL.php | |
| parent | 82b1d999dcfaccea7996d4dccd4778754ec39389 (diff) | |
Fix sqlite_version (#7205)
* Fix sqlite_version
for https://github.com/FreshRSS/FreshRSS/pull/7161
* Fix PostgreSQL
Diffstat (limited to 'app/Models/DatabaseDAOPGSQL.php')
| -rw-r--r-- | app/Models/DatabaseDAOPGSQL.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Models/DatabaseDAOPGSQL.php b/app/Models/DatabaseDAOPGSQL.php index a183bdee6..3fa70cd88 100644 --- a/app/Models/DatabaseDAOPGSQL.php +++ b/app/Models/DatabaseDAOPGSQL.php @@ -60,6 +60,11 @@ SQL; } #[\Override] + protected function selectVersion(): string { + return $this->fetchValue('SELECT version()') ?? ''; + } + + #[\Override] public function size(bool $all = false): int { if ($all) { $db = FreshRSS_Context::systemConf()->db; |
