partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 218e8dafb1488552e9bbc71d9541b361c4f1541b
parent 605531f57ea5e6a6f38a27ec86637be27fd835a8
Author: felicitus <felicitus@felicitus.org>
Date:   Tue, 26 Jun 2012 13:03:31 +0200

Force SET NAMES when connecting to a MySQL DB - required for PDO<5.3.6

Diffstat:
Msrc/backend/PartKeepr/PartKeepr.php | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/backend/PartKeepr/PartKeepr.php b/src/backend/PartKeepr/PartKeepr.php @@ -196,6 +196,8 @@ class PartKeepr { switch ($driver) { case "pdo_mysql": + // Force SET NAMES, as PHP/PDO <5.3.6 silently ignores "charset" + $connectionOptions["driverOptions"] = array(1002=>'SET NAMES utf8'); case "pdo_pgsql": case "pdo_oci": case "oci8":