diff options
| author | 2025-05-17 22:51:44 +0200 | |
|---|---|---|
| committer | 2025-05-17 22:51:44 +0200 | |
| commit | 52848d414d63bbb57042741bd56d97a7fea06653 (patch) | |
| tree | bc1cc6151dbc2f02ac349598aac7dab0e33cb7c7 /app/Models/DatabaseDAO.php | |
| parent | e24d9f39fb299829abd4b8b28b6d3bc6d7e99522 (diff) | |
Add info about PDO::ATTR_CLIENT_VERSION (#7591)
Help with https://github.com/FreshRSS/FreshRSS/issues/7586
Diffstat (limited to 'app/Models/DatabaseDAO.php')
| -rw-r--r-- | app/Models/DatabaseDAO.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Models/DatabaseDAO.php b/app/Models/DatabaseDAO.php index 5a25b74a0..fe922cb82 100644 --- a/app/Models/DatabaseDAO.php +++ b/app/Models/DatabaseDAO.php @@ -212,6 +212,11 @@ class FreshRSS_DatabaseDAO extends Minz_ModelPdo { return $version; } + public function pdoClientVersion(): string { + $version = $this->pdo->getAttribute(PDO::ATTR_CLIENT_VERSION); + return is_string($version) ? $version : ''; + } + final public function isMariaDB(): bool { // MariaDB includes its name in version, but not MySQL return str_contains($this->version(), 'MariaDB'); |
