Commit graph

5 commits

Author SHA1 Message Date
Bastian Lederer
ca4f9a39ce Use PDO MySQL driver-specific constants
Replace deprecated `PDO::MYSQL_*` constant usage with the driver-specific
`Pdo\Mysql::ATTR_*` constants introduced in PHP 8.4.

This prepares the code for PHP 8.5, where accessing MySQL driver constants
through the generic `PDO` class is deprecated.

This change requires a compatibility shim on older PHP versions to provide
`Pdo\Mysql` for runtimes that do not expose the driver-specific class yet.  The
shim is provided in `ipl-sql`.
2026-03-19 22:08:30 +01:00
Eric Lippmann
272e791390 License source files as GPL-3.0-or-later
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 14:03:05 +01:00
Johannes Meyer
ab5304d4b0 Backend: Also escape …FROM user in case of pgsql
Some checks failed
L10n Update / update (push) Has been cancelled
CI / PHP (push) Has been cancelled
Still hacky, but at least the combined str_replace
should compensate the preg_replace :D

I stopped thinking about a proper fix, as between the
time the original quick fix was implemented and now,
nothing has fundamentally changed in ipl-orm.

fixes #1330
2026-02-20 11:27:27 +01:00
Sukhwinder Dhillon
dd744395c7 Keep compatibility with Icinga DB mysql v6 & pgsql v4 2025-01-14 13:13:25 +01:00
Johannes Meyer
b10b534ee6 Introduce singleton Icinga\Module\Icingadb\Common\Backend 2024-12-17 16:33:05 +01:00