pdo->exec($sql) !== false; } #[\Override] public function updateCachedValues(int ...$feedIds): int|false { // Compatible PostgreSQL, SQLite, MySQL 8.0+, but not MariaDB as of version 12.2. if (empty($feedIds)) { $whereFeedIds = 'true'; $whereEntryIdFeeds = 'true'; } else { $whereFeedIds = 'id IN (' . str_repeat('?,', count($feedIds) - 1) . '?)'; $whereEntryIdFeeds = 'id_feed IN (' . str_repeat('?,', count($feedIds) - 1) . '?)'; } $sql = <<pdo->prepare($sql); if ($stm !== false && $stm->execute(array_merge($feedIds, $feedIds))) { return $stm->rowCount(); } else { $info = $stm === false ? $this->pdo->errorInfo() : $stm->errorInfo(); Minz_Log::error('SQL error ' . __METHOD__ . json_encode($info)); return false; } } }