summaryrefslogtreecommitdiff
path: root/app/Models/DatabaseDAOPGSQL.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2019-11-12 10:19:57 +0100
committerGravatar GitHub <noreply@github.com> 2019-11-12 10:19:57 +0100
commit09c088c62ece3b17615fb4e2addfa16663bb334f (patch)
tree9fe5a64e52711524bd6c327cd9db02dca83065a5 /app/Models/DatabaseDAOPGSQL.php
parent91cb165829badde07c42a002215cf52779d891b6 (diff)
parent874fce6656ce0a4fb144af672e8a31f1ec5f64f5 (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.php6
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;
}