diff options
| author | 2019-11-12 10:19:57 +0100 | |
|---|---|---|
| committer | 2019-11-12 10:19:57 +0100 | |
| commit | 09c088c62ece3b17615fb4e2addfa16663bb334f (patch) | |
| tree | 9fe5a64e52711524bd6c327cd9db02dca83065a5 /app/Models/DatabaseDAOPGSQL.php | |
| parent | 91cb165829badde07c42a002215cf52779d891b6 (diff) | |
| parent | 874fce6656ce0a4fb144af672e8a31f1ec5f64f5 (diff) | |
Merge pull request #2655 from FreshRSS/dev1.15.2
FreshRSS 1.15.2
Diffstat (limited to 'app/Models/DatabaseDAOPGSQL.php')
| -rw-r--r-- | app/Models/DatabaseDAOPGSQL.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/DatabaseDAOPGSQL.php b/app/Models/DatabaseDAOPGSQL.php index 7ca7799ae..75ff8be7b 100644 --- a/app/Models/DatabaseDAOPGSQL.php +++ b/app/Models/DatabaseDAOPGSQL.php @@ -79,7 +79,11 @@ class FreshRSS_DatabaseDAOPGSQL extends FreshRSS_DatabaseDAOSQLite { foreach ($tables as $table) { $sql = 'VACUUM `_' . $table . '`'; - $ok &= ($this->pdo->exec($sql) !== false); + if ($this->pdo->exec($sql) === false) { + $ok = false; + $info = $this->pdo->errorInfo(); + Minz_Log::warning(__METHOD__ . ' error: ' . $sql . ' : ' . json_encode($info)); + } } return $ok; } |
