From b1a4d8c09fd08244e47fec066dfc4801f317d173 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 31 Mar 2014 21:26:46 -0400 Subject: [PATCH] Disable PDO options ATTR_EMULATE_PREPARES and ATTR_STRINGIFY_FETCHES. --- includes/init.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/init.php b/includes/init.php index 9d1b3e2..9304a8d 100755 --- a/includes/init.php +++ b/includes/init.php @@ -95,6 +95,8 @@ $bugsys->load('db_mysql_pdo', 'db', true); $db->connect(Bugdar::$db); Bugdar::$db->SetAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_WARNING); +Bugdar::$db->SetAttribute(\PDO::ATTR_EMULATE_PREPARES, FALSE); +Bugdar::$db->SetAttribute(\PDO::ATTR_STRINGIFY_FETCHES, FALSE); if ($utf8) { -- 2.43.5